Classe ServiceContract
The ServiceContract objects represents a contract that specifies the direction and type of messages in a conversation.
Spazio dei nomi: Microsoft.SqlServer.Management.Smo.Broker
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
<PhysicalFacetAttribute> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.Broker.BrokerLocalizableResources", _
True)> _
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
Public NotInheritable Class ServiceContract _
Inherits BrokerObjectBase _
Implements IObjectPermission, IExtendedProperties, ICreatable, IAlterable, _
IDroppable
'Utilizzo
Dim instance As ServiceContract
[PhysicalFacetAttribute]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.Broker.BrokerLocalizableResources",
true)]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
public sealed class ServiceContract : BrokerObjectBase,
IObjectPermission, IExtendedProperties, ICreatable, IAlterable, IDroppable
[PhysicalFacetAttribute]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Smo.Broker.BrokerLocalizableResources",
true)]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
public ref class ServiceContract sealed : public BrokerObjectBase,
IObjectPermission, IExtendedProperties, ICreatable, IAlterable, IDroppable
[<SealedAttribute>]
[<PhysicalFacetAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.Broker.BrokerLocalizableResources",
true)>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
type ServiceContract =
class
inherit BrokerObjectBase
interface IObjectPermission
interface IExtendedProperties
interface ICreatable
interface IAlterable
interface IDroppable
end
public final class ServiceContract extends BrokerObjectBase implements IObjectPermission, IExtendedProperties, ICreatable, IAlterable, IDroppable
Osservazioni
To get ServiceContract object properties, users can be a member of the public fixed server role.
To set ServiceContract object properties, users must be a member of the db_ddladmin or db_owner fixed database roles, or be a member of the sysadmin fixed server role. The user also requires REFERENCES permission on the specified schema.
To create a service contract, users must be a member of the db_ddladmin or db_owner fixed database roles, or be a member of the sysadmin fixed server role. The user also requires REFERENCES permission on the specified schema.
To drop a service contract, users must be a member of the db_ddladmin or db_owner fixed database roles, or be a member of the sysadmin fixed server role. The user also requires REFERENCES permission on the specified schema.
To grant, deny, or revoke permissions on the service type to other users, users must have CONTROL permission on the message type
Thread Safety
Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.
Gerarchia di ereditarietà
System. . :: . .Object
Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .NamedSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .ScriptNameObjectBase
Microsoft.SqlServer.Management.Smo.Broker. . :: . .BrokerObjectBase
Microsoft.SqlServer.Management.Smo.Broker..::..ServiceContract
Thread Safety
Tutti i membri pubblici static (Shared in Visual Basic) di questo tipo sono thread safe. I membri di istanza non hanno garanzia di essere thread safe.
Vedere anche