UserInteractionServices.GetNameString 方法
返回名称,并将字符串转义(如有相应要求)。
命名空间: Microsoft.Data.Schema
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Protected Function GetNameString ( _
name As String, _
escape As Boolean _
) As String
protected string GetNameString(
string name,
bool escape
)
protected:
String^ GetNameString(
String^ name,
bool escape
)
member GetNameString :
name:string *
escape:bool -> string
protected function GetNameString(
name : String,
escape : boolean
) : String
参数
- name
类型:System.String
要返回的 string。
- escape
类型:System.Boolean
true 表示将 name 转义。
返回值
类型:System.String
提供的名称。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。