Freigeben über


DacType.Load Method (, )

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: Stream
    A Stream object pointing to a saved DAC type.
  • typeMetadataOnly
    Type: 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.

See Also

Reference

DacType Class

Load Overload

Microsoft.SqlServer.Management.Dac Namespace