DacType.Load Method (Stream, Boolean)
Deserializes the input from a Stream object pointing to a saved DAC type into a DacType object, with the option for loading elements other than the DAC type metadata.
Namespace: Microsoft.SqlServer.Management.Dac
Assembly: Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)
Syntax
'Declaration
Public Shared Function Load ( _
stream As Stream, _
typeMetadataOnly As Boolean _
) As DacType
'Usage
Dim stream As Stream
Dim typeMetadataOnly As Boolean
Dim returnValue As DacType
returnValue = DacType.Load(stream, typeMetadataOnly)
public static DacType Load(
Stream stream,
bool typeMetadataOnly
)
public:
static DacType^ Load(
Stream^ stream,
bool typeMetadataOnly
)
static member Load :
stream:Stream *
typeMetadataOnly:bool -> DacType
public static function Load(
stream : Stream,
typeMetadataOnly : boolean
) : DacType
Parameters
- stream
Type: System.IO.Stream
A Stream object pointing to a saved DAC type.
- typeMetadataOnly
Type: System.Boolean
A Boolean value that specifies whether elements other than the DAC type metadata is serialized. Specify true to serialize only the metadata. Otherwise, specify false.
Return Value
Type: Microsoft.SqlServer.Management.Dac.DacType
A DacType object populated with the DAC type elements from the input stream.