Share via


NamespaceExtension.OnRetrievePersistenceKey Method ()

 

Called when namespace extension persistence occurs to get instance-specific data.

Namespace:   Microsoft.ManagementConsole.Advanced
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)

Syntax

protected virtual string OnRetrievePersistenceKey()
protected:
virtual String^ OnRetrievePersistenceKey()
abstract OnRetrievePersistenceKey : unit -> string
override OnRetrievePersistenceKey : unit -> string
Protected Overridable Function OnRetrievePersistenceKey As String

Return Value

Type: System.String

The key.

The default is null, which means that this instance will not participate in this persistence call. The snap-in must override this method and give a non-null key for it to be called for Save/Load.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

A null value means that the snap-in does not participate in persistence. String.Empty is a valid key and can be used by the snap-in.

For security, full trust for the immediate caller is required. This member cannot be used by partially trusted code.

See Also

NamespaceExtension Class
Microsoft.ManagementConsole.Advanced Namespace

Return to top