EventMappingSettings.Name Propriedade
Definição
Obtém ou define o nome do objeto EventMappingSettings.Gets or sets the name of the EventMappingSettings object.
public:
property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("name", DefaultValue=Mono.Cecil.CustomAttributeArgument, IsKey=true, IsRequired=true)]
public string Name { get; set; }
[<System.Configuration.ConfigurationProperty("name", DefaultValue=Mono.Cecil.CustomAttributeArgument, IsKey=true, IsRequired=true)>]
member this.Name : string with get, set
Public Property Name As String
Valor da propriedade
O nome do objeto EventMappingSettings.The name of the EventMappingSettings object. O padrão é uma cadeia de caracteres vazia ("").The default is an empty string ("").
- Atributos
Exemplos
O exemplo de código a seguir mostra como usar a Name propriedade.The following code example shows how to use the Name property. Este exemplo de código faz parte de um exemplo maior fornecido para a HealthMonitoringSection classe.This code example is part of a larger example provided for the HealthMonitoringSection class.
eventMappingSetting.Name = "All Errors";
eventMappingSetting.Name = "All Errors"
Comentários
um nome exclusivo é necessário.A unique name is required. Nomes duplicados podem resultar em perda de dados quando a seção de configuração é salva.Duplicate names may result in a loss of data when the configuration section is saved.