PropertyBag.CreatePropertyBagFromState 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从指定状态反序列化 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 指定的状态数据创建的 对象。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈