Partager via


Méthode Serialize

Serializes a package to a memory stream.

Espace de noms :  Microsoft.MasterDataServices.Deployment
Assembly :  Microsoft.MasterDataServices.Deployment (en Microsoft.MasterDataServices.Deployment.dll)

Syntaxe

'Déclaration
Public Function Serialize As MemoryStream
'Utilisation
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

Valeur de retour

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

Notes

Serialize throws DeploymentException if validation of the package fails.