Share via


PropertyBag.CreatePropertyBagFromState Method

Definition

Deserializes a PropertyBag object from the specified state.

Overloads

CreatePropertyBagFromState(String)

Deserializes a property bag from the specified state.

CreatePropertyBagFromState(String, Boolean)

Deserializes a property bag from the specified state and optionally makes it read-only.

CreatePropertyBagFromState(String)

Deserializes a property bag from the specified state.

public:
 static Microsoft::Web::Management::Server::PropertyBag ^ CreatePropertyBagFromState(System::String ^ state);
public static Microsoft.Web.Management.Server.PropertyBag CreatePropertyBagFromState (string state);
static member CreatePropertyBagFromState : string -> Microsoft.Web.Management.Server.PropertyBag
Public Shared Function CreatePropertyBagFromState (state As String) As PropertyBag

Parameters

state
String

The serialized state of a PropertyBag.

Returns

A PropertyBag object that is created from the specified state data.

Remarks

The GetState method returns serialized state for the collection.

Applies to

CreatePropertyBagFromState(String, Boolean)

Deserializes a property bag from the specified state and optionally makes it read-only.

public:
 static Microsoft::Web::Management::Server::PropertyBag ^ CreatePropertyBagFromState(System::String ^ state, bool readOnly);
public static Microsoft.Web.Management.Server.PropertyBag CreatePropertyBagFromState (string state, bool readOnly);
static member CreatePropertyBagFromState : string * bool -> Microsoft.Web.Management.Server.PropertyBag
Public Shared Function CreatePropertyBagFromState (state As String, readOnly As Boolean) As PropertyBag

Parameters

state
String

The serialized state of a PropertyBag.

readOnly
Boolean

true to create a read-only collection; false to create a modifiable collection.

Returns

A PropertyBag object that is created from the specified state data.

Applies to