UserInteractionServices.GetDisplayName 方法 (ModelIdentifier, Boolean, Boolean, Int32)

傳回識別項的顯示名稱。

命名空間:  Microsoft.Data.Schema
組件:  Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)

語法

'宣告
Public Overridable Function GetDisplayName ( _
    identifier As ModelIdentifier, _
    escape As Boolean, _
    fullName As Boolean, _
    numberOfPartsToSkip As Integer _
) As String
public virtual string GetDisplayName(
    ModelIdentifier identifier,
    bool escape,
    bool fullName,
    int numberOfPartsToSkip
)
public:
virtual String^ GetDisplayName(
    ModelIdentifier^ identifier, 
    bool escape, 
    bool fullName, 
    int numberOfPartsToSkip
)
abstract GetDisplayName : 
        identifier:ModelIdentifier * 
        escape:bool * 
        fullName:bool * 
        numberOfPartsToSkip:int -> string 
override GetDisplayName : 
        identifier:ModelIdentifier * 
        escape:bool * 
        fullName:bool * 
        numberOfPartsToSkip:int -> string 
public function GetDisplayName(
    identifier : ModelIdentifier, 
    escape : boolean, 
    fullName : boolean, 
    numberOfPartsToSkip : int
) : String

參數

  • fullName
    型別:System.Boolean
    true 表示傳回完整項目名稱。
  • numberOfPartsToSkip
    型別:System.Int32
    int ,表示從開頭起算、要省略的名稱部分數目。

傳回值

型別:System.String
指定的項目名稱。

備註

參數會指定如何建構顯示名稱。

.NET Framework 安全性

請參閱

參考

UserInteractionServices 類別

GetDisplayName 多載

Microsoft.Data.Schema 命名空間

ModelIdentifier