다음을 통해 공유


Alerts 속성

Represents a collection of Alert objects. Each Alert object represents an alert defined on SQL Server Agent.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(Alert))> _
Public ReadOnly Property Alerts As AlertCollection
    Get
‘사용 방법
Dim instance As JobServer
Dim value As AlertCollection

value = instance.Alerts
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Alert))]
public AlertCollection Alerts { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(Alert))]
public:
property AlertCollection^ Alerts {
    AlertCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Alert))>]
member Alerts : AlertCollection
function get Alerts () : AlertCollection

속성 값

형식: Microsoft.SqlServer.Management.Smo.Agent. . :: . .AlertCollection
An AlertCollection that represents the alerts defined on SQL Server Agent.