BacPackage.Load 메서드 (Stream, DacSchemaModelStorageType)
Loads a package from the specified Stream.
네임스페이스: Microsoft.SqlServer.Dac
어셈블리: Microsoft.SqlServer.Dac(Microsoft.SqlServer.Dac.dll)
구문
‘선언
Public Shared Function Load ( _
stream As Stream, _
modelStorageType As DacSchemaModelStorageType _
) As BacPackage
‘사용 방법
Dim stream As Stream
Dim modelStorageType As DacSchemaModelStorageType
Dim returnValue As BacPackage
returnValue = BacPackage.Load(stream, modelStorageType)
public static BacPackage Load(
Stream stream,
DacSchemaModelStorageType modelStorageType
)
public:
static BacPackage^ Load(
Stream^ stream,
DacSchemaModelStorageType modelStorageType
)
static member Load :
stream:Stream *
modelStorageType:DacSchemaModelStorageType -> BacPackage
public static function Load(
stream : Stream,
modelStorageType : DacSchemaModelStorageType
) : BacPackage
매개 변수
- stream
유형: System.IO.Stream
A stream from which to read the package.
- modelStorageType
유형: Microsoft.SqlServer.Dac.DacSchemaModelStorageType
The type of backing storage for a schema model.
반환 값
유형: Microsoft.SqlServer.Dac.BacPackage
A DacPackage instance that represents the package loaded from the specified file.
예외
예외 | 조건 |
---|---|
DacServicesException | If there is a problem reading the package; or if the package does not contain exported data. |