共用方式為


ServiceQueue.ProcedureName 屬性

Gets or sets the name of the executing procedure.

此 API 不符合 CLS 標準。 

命名空間:  Microsoft.SqlServer.Management.Smo.Broker
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(StoredProcedure), "Server[@Name = '{0}']/Database[@Name = '{1}']/StoredProcedure[@Name='{2}' and @Schema='{3}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property ProcedureName As String 
    Get 
    Set
'用途
Dim instance As ServiceQueue 
Dim value As String 

value = instance.ProcedureName

instance.ProcedureName = value
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(StoredProcedure), "Server[@Name = '{0}']/Database[@Name = '{1}']/StoredProcedure[@Name='{2}' and @Schema='{3}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string ProcedureName { get; set; }
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(StoredProcedure), L"Server[@Name = '{0}']/Database[@Name = '{1}']/StoredProcedure[@Name='{2}' and @Schema='{3}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ ProcedureName {
    String^ get ();
    void set (String^ value);
}
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(StoredProcedure), "Server[@Name = '{0}']/Database[@Name = '{1}']/StoredProcedure[@Name='{2}' and @Schema='{3}']", 
    )>]
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member ProcedureName : string with get, set
function get ProcedureName () : String 
function set ProcedureName (value : String)

屬性值

型別:System.String
A String value that specifies the name of the executing procedure.

範例

Readme_ServiceBrokerConfiguration

請參閱

參考

ServiceQueue 類別

Microsoft.SqlServer.Management.Smo.Broker 命名空間

其他資源

開發 (Service Broker)

管理 Service Broker

概觀 (Service Broker)

CREATE QUEUE (Transact-SQL)