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.

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

See Also

Reference

ExtendedWeakReference Class

Microsoft.SPOT Namespace