共用方式為


ClientCodeGenerationOptions.UseFullTypeNames 屬性

取得或設定值,這個值表示程式碼產生期間是否應該使用完整限定的型別名稱。

命名空間: Microsoft.ServiceModel.DomainServices.Tools
組件: Microsoft.ServiceModel.DomainServices.Tools (於 microsoft.servicemodel.domainservices.tools.dll)

使用方式

'用途
Dim instance As ClientCodeGenerationOptions
Dim value As Boolean

value = instance.UseFullTypeNames

instance.UseFullTypeNames = value

語法

'宣告
Public Property UseFullTypeNames As Boolean
public bool UseFullTypeNames { get; set; }
public:
property bool UseFullTypeNames {
    bool get ();
    void set (bool value);
}
/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public boolean get_UseFullTypeNames ()

/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public void set_UseFullTypeNames (boolean value)
CompilerGeneratedAttribute 
public function get UseFullTypeNames () : boolean

CompilerGeneratedAttribute 
public function set UseFullTypeNames (value : boolean)

屬性值

如果程式碼產生期間應該使用完整限定的型別名稱,則為 true,否則為 false

備註

如果為 true,程式碼產生器永遠會產生完整限定的型別名稱,而且會避免加入不必要的匯入。如果為 false,程式碼產生器只會產生簡短的型別名稱,而且會加入 Import 陳述式。

執行緒安全性

任何這個類型的公用靜態 (在 Visual Basic 中為 共用) 成員都具備執行緒安全。 不保證任何執行個體成員安全執行緒。

平台

開發平台

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 、Windows Server 2008 和 Windows 2000

目標平台

另請參閱

參考

ClientCodeGenerationOptions 類別
ClientCodeGenerationOptions 成員
Microsoft.ServiceModel.DomainServices.Tools 命名空間