MsmqBindingElementBase.TimeToLive 속성

정의

메시지 유효 기간을 지정하는 값을 가져오거나 설정합니다. 이 시간이 경과하면 배달 못 한 편지 큐가 있을 경우 이 큐로 메시지가 배치됩니다.

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

속성 값

TimeSpan

메시지 유효 기간을 지정하는 TimeSpan 값입니다. 기본값은 24시간입니다.

특성

설명

대기 중인 애플리케이션은 원래 오프라인 상태로 작동합니다. 따라서 송신 및 수신 애플리케이션이 동시에 실행 중이 아닐 수도 있습니다. 따라서 송신 애플리케이션에서 보낸 메시지가 수신 애플리케이션에서 즉시 처리되지 않을 수도 있습니다. 일부 메시지에는 특정 기간 동안만 유효한 정보가 포함될 수 있습니다. 이 메시지가 해당 기간 내에 배달되지 않을 경우 포함된 정보는 더 이상 유용하지 않으므로 삭제되어야 합니다. 이 속성을 사용하면 애플리케이션 큐로 배달되기 전에 메시지를 보존할 기간에 대해 시간 제한을 지정할 수 있습니다. 메시지가 애플리케이션 큐에 배달되기 전에 이 시간 제한이 초과된 경우 DeadLetterQueue 속성으로 지정된 배달 못 한 편지 큐가 있으면 이 큐로 메시지가 배치되고, 배달 못 한 편지 큐가 없으면 메시지가 삭제됩니다.

적용 대상