DacPackage.Load 方法 (String)

Load a package file specified by fileName.

命名空间:  Microsoft.SqlServer.Dac
程序集:  Microsoft.SqlServer.Dac(在 Microsoft.SqlServer.Dac.dll 中)

语法

声明
Public Shared Function Load ( _
    fileName As String _
) As DacPackage
用法
Dim fileName As String 
Dim returnValue As DacPackage 

returnValue = DacPackage.Load(fileName)
public static DacPackage Load(
    string fileName
)
public:
static DacPackage^ Load(
    String^ fileName
)
static member Load : 
        fileName:string -> DacPackage
public static function Load(
    fileName : String
) : DacPackage

参数

返回值

类型:Microsoft.SqlServer.Dac.DacPackage
DacPackage instance that represents the package loaded from the specified file.

异常

异常 条件
DacServicesException

If there is a problem reading the package; or if the package contains exported data.

请参阅

参考

DacPackage 类

Load 重载

Microsoft.SqlServer.Dac 命名空间