Udostępnij przez


MessageType Class

The MessageType object represents a message type that defines the content of messages.

Namespace: Microsoft.SqlServer.Management.Smo.Broker
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Deklaracja
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.Broker.BrokerLocalizableResources", True)> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute> _
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
Public NotInheritable Class MessageType
    Inherits BrokerObjectBase
    Implements IObjectPermission, IExtendedProperties, ICreatable, IAlterable, _
    IDroppable
[LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.Broker.BrokerLocalizableResources", true)] 
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)] 
[PhysicalFacetAttribute] 
[TypeConverterAttribute(typeof(LocalizableTypeConverter))] 
public sealed class MessageType : BrokerObjectBase, IObjectPermission, IExtendedProperties, ICreatable, 
    IAlterable, IDroppable
[LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Smo.Broker.BrokerLocalizableResources", true)] 
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)] 
[PhysicalFacetAttribute] 
[TypeConverterAttribute(typeof(LocalizableTypeConverter))] 
public ref class MessageType sealed : public BrokerObjectBase, IObjectPermission, IExtendedProperties, ICreatable, 
    IAlterable, IDroppable
/** @attribute LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.Broker.BrokerLocalizableResources", true) */ 
/** @attribute EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule) */ 
/** @attribute PhysicalFacetAttribute() */ 
/** @attribute TypeConverterAttribute(Microsoft.SqlServer.Management.Sdk.Sfc.LocalizableTypeConverter) */ 
public final class MessageType extends BrokerObjectBase implements IObjectPermission, IExtendedProperties, 
    ICreatable, IAlterable, IDroppable
LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.Broker.BrokerLocalizableResources", true) 
EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule) 
PhysicalFacetAttribute 
TypeConverterAttribute(Microsoft.SqlServer.Management.Sdk.Sfc.LocalizableTypeConverter) 
public final class MessageType extends BrokerObjectBase implements IObjectPermission, IExtendedProperties, 
    ICreatable, IAlterable, IDroppable

Remarks

To get MessageType object properties, users can be a member of the public fixed server role.

To set MessageType 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 message type, 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 message type, 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 message type to other users, users must have CONTROL permission on the message type

Thread Safety

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.