PartMetadataAttribute(String, Object) Constructor

Definition

Initializes a new instance of the PartMetadataAttribute class with the specified name and metadata value.

C#
public PartMetadataAttribute(string name, object value);

Parameters

name
String

A string that contains the name of the metadata value, or null to use an empty string ("").

value
Object

An object that contains the metadata value. This can be null.

Applies to

產品 版本
.NET Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)