ChannelEndpointElement.Contract Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the contract that this endpoint is exposing.
public:
property System::String ^ Contract { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("contract", Options=System.Configuration.ConfigurationPropertyOptions.IsKey | System.Configuration.ConfigurationPropertyOptions.IsRequired)]
[System.Configuration.StringValidator(MinLength=1)]
public string Contract { get; set; }
[System.Configuration.ConfigurationProperty("contract", DefaultValue="", Options=System.Configuration.ConfigurationPropertyOptions.IsKey)]
[System.Configuration.StringValidator(MinLength=0)]
public string Contract { get; set; }
[<System.Configuration.ConfigurationProperty("contract", Options=System.Configuration.ConfigurationPropertyOptions.IsKey | System.Configuration.ConfigurationPropertyOptions.IsRequired)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Contract : string with get, set
[<System.Configuration.ConfigurationProperty("contract", DefaultValue="", Options=System.Configuration.ConfigurationPropertyOptions.IsKey)>]
[<System.Configuration.StringValidator(MinLength=0)>]
member this.Contract : string with get, set
Public Property Contract As String
Property Value
The contract this endpoint is exposing. The assembly must implement the contract type.
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.