ProjectWorkflowContext.GetObjectData 方法
會指定的SerializationInfo物件序列化ProjectWorkflowContext所需的資料。
命名空間: Microsoft.Office.Project.Server.Library
組件: Microsoft.Office.Project.Server.Library (在 Microsoft.Office.Project.Server.Library.dll 中)
語法
'宣告
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Overrides Sub GetObjectData ( _
info As SerializationInfo, _
context As StreamingContext _
)
'用途
Dim instance As ProjectWorkflowContext
Dim info As SerializationInfo
Dim context As StreamingContext
instance.GetObjectData(info, context)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public override void GetObjectData(
SerializationInfo info,
StreamingContext context
)
參數
info
類型:System.Runtime.Serialization.SerializationInfo包含序列化的資料相關的工作流程的內容。
context
類型:System.Runtime.Serialization.StreamingContext包含內容相關式序列化來源或目的地的相關資訊。
實作
ISerializable.GetObjectData(SerializationInfo, StreamingContext)