PersistenceProviderElement.PersistenceOperationTimeout 属性

定义

获取或设置用于持久性操作的超时值。

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

属性值

TimeSpan

一个 TimeSpan,指定用于持久性操作的超时值。

属性

注解

默认值为 30 秒。

适用于