다음을 통해 공유


NotificationClass.ExpirationAge Property

Gets or sets the amount of time to elapse before unsent messages of the notification class are considered to have expired.

네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

구문

‘선언
Public Property ExpirationAge As TimeSpan
public TimeSpan ExpirationAge { get; set; }
public:
property TimeSpan ExpirationAge {
    TimeSpan get ();
    void set (TimeSpan value);
}
/** @property */
public TimeSpan get_ExpirationAge ()

/** @property */
public void set_ExpirationAge (TimeSpan value)
public function get ExpirationAge () : TimeSpan

public function set ExpirationAge (value : TimeSpan)

속성 값

A TimeSpan object that specifies the expiration age for notifications from the notification class.

주의

If no ExpirationAge value is specified, notifications never expire. Notification Services continues to attempt delivery of all notifications until the retry schedule is exhausted.

During delivery, Notification Services ignores any notifications that have expired per the ExpirationAge value.

To remove the expiration age value from a deployed application, you must set the value to TimeSpan.Zero.

The following examples show how to set the expiration age for notifications generated for a notification class:

flightNotifications.ExpirationAge = new TimeSpan(2, 0, 0);
flightNotifications.ExpirationAge = New TimeSpan(2, 0, 0)

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

NotificationClass Class
NotificationClass Members
Microsoft.SqlServer.Management.Nmo Namespace

관련 자료

알림 클래스 정의
알림 만료 기간 지정
ExpirationAge Element (ADF)