ChannelEndpointElement.Name Property

 

Gets or sets a unique identifier of an endpoint for a given contract.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

[ConfigurationPropertyAttribute("name", DefaultValue = "", Options = ConfigurationPropertyOptions.IsKey)]
[StringValidatorAttribute(MinLength = 0)]
public string Name { get; set; }

Property Value

Type: System.String

An endpoint for a given contract. The default is an empty string. The service model allows the user to define multiple clients for a given contract type. Each definition must be differentiated by a unique configuration name. If this property is omitted, the corresponding endpoint is used as the default endpoint associated with the specified contract type.

The service model allows the user to define multiple clients for a given contract type. Each definition must be differentiated by a unique configuration name. If this property is omitted, the corresponding endpoint is used as the default endpoint associated with the specified contract type.

.NET Framework
Available since 3.0
Return to top
Show: