다음을 통해 공유


ServiceQueue.IsRetentionEnabled 속성

Gets or sets the Boolean property that specifies whether the retention is enabled for the service queue.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Broker
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property IsRetentionEnabled As Boolean 
    Get 
    Set
‘사용 방법
Dim instance As ServiceQueue 
Dim value As Boolean 

value = instance.IsRetentionEnabled

instance.IsRetentionEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool IsRetentionEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool IsRetentionEnabled {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member IsRetentionEnabled : bool with get, set
function get IsRetentionEnabled () : boolean 
function set IsRetentionEnabled (value : boolean)

속성 값

유형: System.Boolean
A Boolean value that specifies whether retention is enabled for the service queue.If True, retention is enabled for the service queue.If False (default), retention is disabled for the service queue.

Readme_ServiceBrokerConfiguration

참고 항목

참조

ServiceQueue 클래스

Microsoft.SqlServer.Management.Smo.Broker 네임스페이스

관련 자료

개발(Service Broker)

Service Broker 관리

개요(Service Broker)

CREATE QUEUE(Transact-SQL)