PropertyBag.CreatePropertyBagFromState Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.