SqlCmdVariablesService.GetVariablesFromSqlCmdFile 方法
返回当前 SQLCMD 变量文件中所含的变量。
命名空间: Microsoft.VisualStudio.Data.Schema.Package.Sql.Project
程序集: Microsoft.VisualStudio.Data.Schema.Package.Sql(在 Microsoft.VisualStudio.Data.Schema.Package.Sql.dll 中)
语法
声明
Public Sub GetVariablesFromSqlCmdFile ( _
<OutAttribute> ByRef variables As Dictionary(Of String, String) _
)
public void GetVariablesFromSqlCmdFile(
out Dictionary<string, string> variables
)
public:
void GetVariablesFromSqlCmdFile(
[OutAttribute] Dictionary<String^, String^>^% variables
)
member GetVariablesFromSqlCmdFile :
variables:Dictionary<string, string> byref -> unit
public function GetVariablesFromSqlCmdFile(
variables : Dictionary<String, String>
)
参数
- variables
类型:System.Collections.Generic.Dictionary<String, String>%
返回当前 sqlcmdvars 文件中的变量的列表。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。