EdmTypeAnnotation 类

表示 EDM 类型批注。

继承层次结构

System.Object
  Microsoft.Data.Edm.Library.EdmElement
    Microsoft.Data.Edm.Library.Annotations.EdmVocabularyAnnotation
      Microsoft.Data.Edm.Library.Annotations.EdmTypeAnnotation

命名空间:  Microsoft.Data.Edm.Library.Annotations
程序集:  Microsoft.Data.Edm(在 Microsoft.Data.Edm.dll 中)

语法

声明
Public Class EdmTypeAnnotation _
    Inherits EdmVocabularyAnnotation _
    Implements IEdmTypeAnnotation, IEdmVocabularyAnnotation, IEdmElement
用法
Dim instance As EdmTypeAnnotation
public class EdmTypeAnnotation : EdmVocabularyAnnotation, 
    IEdmTypeAnnotation, IEdmVocabularyAnnotation, IEdmElement
public ref class EdmTypeAnnotation : public EdmVocabularyAnnotation, 
    IEdmTypeAnnotation, IEdmVocabularyAnnotation, IEdmElement
type EdmTypeAnnotation =  
    class
        inherit EdmVocabularyAnnotation
        interface IEdmTypeAnnotation
        interface IEdmVocabularyAnnotation
        interface IEdmElement
    end
public class EdmTypeAnnotation extends EdmVocabularyAnnotation implements IEdmTypeAnnotation, IEdmVocabularyAnnotation, IEdmElement

EdmTypeAnnotation 类型公开以下成员。

构造函数

  名称 说明
公共方法 EdmTypeAnnotation 初始化 EdmTypeAnnotation 类的新实例。

页首

属性

  名称 说明
公共属性 Properties 获取类型属性的值批注。
公共属性 Qualifier 获取或设置要用于鉴别相同属性或类型的多个绑定的限定符。 (从 EdmVocabularyAnnotation 继承。)
公共属性 Target 获取或设置批注应用的元素。 (从 EdmVocabularyAnnotation 继承。)
公共属性 Term 获取或设置由批注绑定的术语。 (从 EdmVocabularyAnnotation 继承。)

页首

方法

  名称 说明
公共方法 AddProperty “属性” 添加到此类型批注。
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 RemoveProperty “属性” 从此类型批注移除。
公共方法 ToString (从 Object 继承。)

页首

扩展方法

  名称 说明
公共扩展方法 Errors 获取属于此元素或此元素包含的元素的错误(如果有)。例如,结构类型的错误包括该类型本身的错误和其声明属性的错误。该方法不分析此元素所引用的元素。例如,属性的错误不包括其类型的错误。 (由 ValidationExtensionMethods 定义。)
公共扩展方法 FindPropertyBinding(String) 重载。 获取类型批注的类型术语的属性绑定。 (由 ExtensionMethods 定义。)
公共扩展方法 FindPropertyBinding(IEdmProperty) 重载。 获取类型批注的类型术语的属性绑定。 (由 ExtensionMethods 定义。)
公共扩展方法 GetSchemaNamespace 获取应在其中对批准进行序列化的架构。 (由 SerializationExtensionMethods 定义。)
公共扩展方法 GetSerializationLocation 获取应在其中对批准进行序列化的位置。 (由 SerializationExtensionMethods 定义。)
公共扩展方法 IsBad 指示此元素是否包含由 Errors(IEdmElement) 方法返回的错误。 (由 ValidationExtensionMethods 定义。)
公共扩展方法 Location 获取指定项的位置。 (由 ExtensionMethods 定义。)
公共扩展方法 SetSchemaNamespace 设置批注出现时所在的架构。 (由 SerializationExtensionMethods 定义。)
公共扩展方法 SetSerializationLocation 设置应在其中对批注进行序列化的位置。 (由 SerializationExtensionMethods 定义。)
公共扩展方法 TypeTerm 获取具有指定批注的类型术语。 (由 ExtensionMethods 定义。)

页首

线程安全

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

请参阅

参考

Microsoft.Data.Edm.Library.Annotations 命名空间