LocalServiceSecuritySettingsElement.NegotiationTimeout 属性

定义

获取或设置一个 TimeSpan,它指定服务器和客户端之间安全协商阶段的最长持续时间。

public:
 property TimeSpan NegotiationTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.ServiceModel.TimeSpanOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("negotiationTimeout", DefaultValue="00:01:00")]
public TimeSpan NegotiationTimeout { get; set; }
[System.Configuration.ConfigurationProperty("negotiationTimeout", DefaultValue="00:01:00")]
[System.ComponentModel.TypeConverter(typeof(System.Runtime.TimeSpanOrInfiniteConverter))]
public TimeSpan NegotiationTimeout { get; set; }
[System.Configuration.ConfigurationProperty("negotiationTimeout", DefaultValue="00:01:00")]
[System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter))]
public TimeSpan NegotiationTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.ServiceModel.TimeSpanOrInfiniteConverter))>]
[<System.Configuration.ConfigurationProperty("negotiationTimeout", DefaultValue="00:01:00")>]
member this.NegotiationTimeout : TimeSpan with get, set
[<System.Configuration.ConfigurationProperty("negotiationTimeout", DefaultValue="00:01:00")>]
[<System.ComponentModel.TypeConverter(typeof(System.Runtime.TimeSpanOrInfiniteConverter))>]
member this.NegotiationTimeout : TimeSpan with get, set
[<System.Configuration.ConfigurationProperty("negotiationTimeout", DefaultValue="00:01:00")>]
[<System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter))>]
member this.NegotiationTimeout : TimeSpan with get, set
Public Property NegotiationTimeout As TimeSpan

属性值

TimeSpan

一个正的 TimeSpan 值,指定服务器和客户端之间安全协商阶段的最长持续时间。 默认值为“00:02:00”

属性

注解

如果超过时间限制,则会引发异常。

适用于