ExportMetadataAttribute(String, Object) 构造函数
定义
使用指定的名称和元数据值初始化 ExportMetadataAttribute 类的新实例。Initializes a new instance of the ExportMetadataAttribute class with the specified name and metadata value.
public:
ExportMetadataAttribute(System::String ^ name, System::Object ^ value);
public ExportMetadataAttribute (string name, object value);
new System.Composition.ExportMetadataAttribute : string * obj -> System.Composition.ExportMetadataAttribute
Public Sub New (name As String, value As Object)
参数
- name
- String
一个包含元数据值的名称的字符串,或为 null 以将 Name 属性设置为一个空字符串 ("")。A string that contains the name of the metadata value, or null to set the Name property to an empty string ("").
- value
- Object
包含元数据值的对象。An object that contains the metadata value. 它可以是 null。This can be null.