傳回所指定項目的項目名稱。
命名空間: Microsoft.Data.Schema
組件: Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)
語法
'宣告
Protected Overridable Function GetElementName ( _
element As IModelElement, _
escape As Boolean, _
fullName As Boolean, _
includeType As Boolean, _
numberOfPartsToSkip As Integer _
) As String
protected virtual string GetElementName(
IModelElement element,
bool escape,
bool fullName,
bool includeType,
int numberOfPartsToSkip
)
protected:
virtual String^ GetElementName(
IModelElement^ element,
bool escape,
bool fullName,
bool includeType,
int numberOfPartsToSkip
)
abstract GetElementName :
element:IModelElement *
escape:bool *
fullName:bool *
includeType:bool *
numberOfPartsToSkip:int -> string
override GetElementName :
element:IModelElement *
escape:bool *
fullName:bool *
includeType:bool *
numberOfPartsToSkip:int -> string
protected function GetElementName(
element : IModelElement,
escape : boolean,
fullName : boolean,
includeType : boolean,
numberOfPartsToSkip : int
) : String
參數
- element
型別:Microsoft.Data.Schema.SchemaModel.IModelElement
ModelElement 物件。
- escape
型別:System.Boolean
true 表示逸出傳回的名稱。
- fullName
型別:System.Boolean
true 表示傳回完整項目名稱。
- includeType
型別:System.Boolean
true 表示將項目型別描述附加至 string 的開頭。
- numberOfPartsToSkip
型別:System.Int32
int ,表示從開頭起算、要省略的名稱部分數目。
傳回值
型別:System.String
項目名稱。
備註
參數會指定如何建構顯示名稱。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。