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,代码生成器将只生成短类型名称并添加导入语句。

线程安全

此类型的任何公共静态(在 Visual Basic 中为 共享)成员都是线程安全的。不保证所有实例成员都是线程安全的。

平台

开发平台

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

目标平台

另请参见

参考

ClientCodeGenerationOptions 类
ClientCodeGenerationOptions 成员
Microsoft.ServiceModel.DomainServices.Tools 命名空间