ExtendedWeakReference.RecoverOrCreate Method
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
public static ExtendedWeakReference RecoverOrCreate (
Typeselector,
UInt32id,
UInt32flags
)
Parameters
- selector
The type associated with the weak reference you want to recover. - id
The ID associated with the weak reference you want to recover. - flags
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
The weak reference you specified, or a null reference if the recovery attempt failed.
Version Information
Available in .NET Micro Framework version 2.0, 2.5
See Also
Reference
ExtendedWeakReference Class
ExtendedWeakReference Members
Microsoft.SPOT Namespace