PropertyBag.CreatePropertyBagFromState 方法

定义

从指定状态反序列化 PropertyBag 对象。

重载

CreatePropertyBagFromState(String)

从指定状态反序列化属性包。

CreatePropertyBagFromState(String, Boolean)

从指定状态反序列化属性包,并选择性地使其为只读。

CreatePropertyBagFromState(String)

从指定状态反序列化属性包。

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

参数

state
String

的序列化状态 PropertyBag

返回

PropertyBag 指定的状态数据创建的 对象。

注解

方法 GetState 返回集合的序列化状态。

适用于

CreatePropertyBagFromState(String, Boolean)

从指定状态反序列化属性包,并选择性地使其为只读。

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

参数

state
String

的序列化状态 PropertyBag

readOnly
Boolean

true 创建只读集合; false 创建可修改的集合。

返回

PropertyBag 指定的状态数据创建的 对象。

适用于