EventMappingSettings.Name プロパティ

定義

EventMappingSettings オブジェクトの名前を取得または設定します。

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)]
public string Name { get; set; }
[<System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)>]
member this.Name : string with get, set
Public Property Name As String

プロパティ値

EventMappingSettings オブジェクトの名前。 既定値は空の文字列 ("") です。

属性

次のコード例は、 Name プロパティの使用方法を示しています。 このコード例は、 HealthMonitoringSection クラスに提供されるより大きな例の一部です。

eventMappingSetting.Name = "All Errors";
eventMappingSetting.Name = "All Errors"

注釈

一意の名前が必要です。 構成セクションを保存すると、名前が重複するとデータが失われる可能性があります。

適用対象

こちらもご覧ください