ExternalLanguage.AddFile 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| AddFile(String, Byte[], ExternalLanguageFilePlatform) |
通过语言内容位向外部语言添加新文件规范。 |
| AddFile(String, String, ExternalLanguageFilePlatform) |
通过语言文件路径将新文件规范添加到外部语言。 |
AddFile(String, Byte[], ExternalLanguageFilePlatform)
通过语言内容位向外部语言添加新文件规范。
public void AddFile(string fileName, byte[] contentFromBinary, Microsoft.SqlServer.Management.Smo.ExternalLanguageFilePlatform platform = Microsoft.SqlServer.Management.Smo.ExternalLanguageFilePlatform.Default);
member this.AddFile : string * byte[] * Microsoft.SqlServer.Management.Smo.ExternalLanguageFilePlatform -> unit
Public Sub AddFile (fileName As String, contentFromBinary As Byte(), Optional platform As ExternalLanguageFilePlatform = Microsoft.SqlServer.Management.Smo.ExternalLanguageFilePlatform.Default)
参数
- fileName
- String
外部语言的 .dll 或 .so 文件
- contentFromBinary
- Byte[]
语言内容为二进制
- platform
- ExternalLanguageFilePlatform
在混合 OS 平台(例如 Linux/Windows)
适用于
AddFile(String, String, ExternalLanguageFilePlatform)
通过语言文件路径将新文件规范添加到外部语言。
public void AddFile(string fileName, string contentFromFile, Microsoft.SqlServer.Management.Smo.ExternalLanguageFilePlatform platform = Microsoft.SqlServer.Management.Smo.ExternalLanguageFilePlatform.Default);
member this.AddFile : string * string * Microsoft.SqlServer.Management.Smo.ExternalLanguageFilePlatform -> unit
Public Sub AddFile (fileName As String, contentFromFile As String, Optional platform As ExternalLanguageFilePlatform = Microsoft.SqlServer.Management.Smo.ExternalLanguageFilePlatform.Default)
参数
- fileName
- String
外部语言的 .dll 或 .so 文件
- contentFromFile
- String
语言内容作为文件路径
- platform
- ExternalLanguageFilePlatform
在混合 OS 平台(例如 Linux/Windows)