共用方式為


Serialize 方法

Serializes a package to a memory stream.

命名空間:  Microsoft.MasterDataServices.Deployment
組件:  Microsoft.MasterDataServices.Deployment (在 Microsoft.MasterDataServices.Deployment.dll 中)

語法

'宣告
Public Function Serialize As MemoryStream
'用途
Dim instance As Package
Dim returnValue As MemoryStream

returnValue = instance.Serialize()
public MemoryStream Serialize()
public:
MemoryStream^ Serialize()
member Serialize : unit -> MemoryStream 
public function Serialize() : MemoryStream

傳回值

型別:System.IO. . :: . .MemoryStream
A new instance of type MemoryStream containing the serialized Package.

備註

Serialize throws DeploymentException if validation of the package fails.