返回标识符的显示名称,同时指定是否对名称使用转义字符、提供全名还是缩写形式。
命名空间: Microsoft.Data.Schema
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Public Overridable Function GetDisplayName ( _
identifier As ModelIdentifier, _
escape As Boolean, _
fullName As Boolean _
) As String
public virtual string GetDisplayName(
ModelIdentifier identifier,
bool escape,
bool fullName
)
public:
virtual String^ GetDisplayName(
ModelIdentifier^ identifier,
bool escape,
bool fullName
)
abstract GetDisplayName :
identifier:ModelIdentifier *
escape:bool *
fullName:bool -> string
override GetDisplayName :
identifier:ModelIdentifier *
escape:bool *
fullName:bool -> string
public function GetDisplayName(
identifier : ModelIdentifier,
escape : boolean,
fullName : boolean
) : String
参数
- identifier
类型:Microsoft.Data.Schema.SchemaModel.ModelIdentifier
元素的 ModelIdentifier。
- escape
类型:System.Boolean
true 表示将返回名称转义。
- fullName
类型:System.Boolean
true 表示返回元素全名。
返回值
类型:System.String
指定元素的名称。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。