RecoverOrCreate Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Attempts to recover a specific ExtendedWeakReference object, and creates a new instance of this class if the recovery attempt fails.
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)
Syntax
'Declaration
Public Shared Function RecoverOrCreate ( _
selector As Type, _
id As UInteger, _
flags As UInteger _
) As ExtendedWeakReference
public static ExtendedWeakReference RecoverOrCreate(
Type selector,
uint id,
uint flags
)
public:
static ExtendedWeakReference^ RecoverOrCreate(
Type^ selector,
unsigned int id,
unsigned int flags
)
static member RecoverOrCreate :
selector:Type *
id:uint32 *
flags:uint32 -> ExtendedWeakReference
public static function RecoverOrCreate(
selector : Type,
id : uint,
flags : uint
) : ExtendedWeakReference
Parameters
- selector
Type: System. . :: . .Type
The type associated with the weak reference you want to recover.
- id
Type: System. . :: . .UInt32
The ID associated with the weak reference you want to recover.
- flags
Type: System. . :: . .UInt32
The flags for the new ExtendedWeakReference object that will be created if the one you specified is not recovered. The valid flag values for this parameter are c_SurviveBoot and c_SurvivePowerdown. These values can be combined using a bitwise OR operation.
Return Value
Type: Microsoft.SPOT. . :: . .ExtendedWeakReference
The weak reference you specified, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if the recovery attempt failed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.