Condividi tramite


Metodo Serialize

Serializes a package to a memory stream.

Spazio dei nomi  Microsoft.MasterDataServices.Deployment
Assembly:  Microsoft.MasterDataServices.Deployment (in Microsoft.MasterDataServices.Deployment.dll)

Sintassi

'Dichiarazione
Public Function Serialize As MemoryStream
'Utilizzo
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

Valore restituito

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

Osservazioni

Serialize throws DeploymentException if validation of the package fails.