ISerializableObjectContract.GetCanonicalName 方法
定义
返回此 ISerializableObjectContract 描述的对象类型的规范名称。Returns the canonical name of the type of the object that this ISerializableObjectContract describes.
public:
System::String ^ GetCanonicalName();
public string GetCanonicalName ();
abstract member GetCanonicalName : unit -> string
Public Function GetCanonicalName () As String
返回
此 ISerializableObjectContract 描述的对象类型的规范名称。The canonical name of the type of the object that this ISerializableObjectContract describes.
注解
规范名称是全局唯一名称,如完全限定的类型名称。The canonical name is a globally unique name, such as a fully qualified type name. <assembly name> <fully qualified type name> 对于托管类型,建议使用格式的字符串。Strings in the format <assembly name>, <fully qualified type name> are recommended for managed types. <type library name> <type name> 对于 COM 类型,建议使用格式的字符串。Strings in the format <type library name>, <type name> are recommended for COM types.
发布类型后,请不要更改类型的规范名称。Do not change the canonical name for a type after the type is published. 更改组件的未来版本中类型的规范名称会破坏组件与已使用该类型的客户端之间的兼容性。Changing the canonical name for a type in a future version of a component breaks compatibility between the component and clients that are already using the type.