NotificationComputedField Constructor ()
Initializes a new instance of the NotificationComputedField class.
Namespace: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Sub New
public NotificationComputedField ()
public:
NotificationComputedField ()
public NotificationComputedField ()
public function NotificationComputedField ()
Hinweise
Aktualisierter Text:05. Dezember 2005
Aktualisierter Beispielcode:05. Dezember 2005
If you use the default constructor, you must immediately set the Name property and then set the Parent property. You can then set other properties, such as the required DigestGrouping property.
Beispiel
The following examples show how to use this default constructor to create a computed field and add it to a notification class:
NotificationComputedField computedPrice =
new NotificationComputedField();
computedPrice.Name = "FormattedPrice";
computedPrice.Parent = flightNotifications;
computedPrice.DigestGrouping = false;
computedPrice.SqlExpression = "CONVERT(NVARCHAR(10), Price, 1)";
flightNotifications.NotificationComputedFields.Add(computedPrice);
Dim computedPrice As NotificationComputedField = _
New NotificationComputedField()
computedPrice.Name = "FormattedPrice"
computedPrice.Parent = flightNotifications
computedPrice.DigestGrouping = False
computedPrice.SqlExpression = "CONVERT(NVARCHAR(10), Price, 1)"
flightNotifications.NotificationComputedFields.Add(computedPrice)
Plattformen
Entwicklungsplattformen
Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.
Zielplattforme
Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.
Siehe auch
Verweis
NotificationComputedField Class
NotificationComputedField Members
Microsoft.SqlServer.Management.Nmo Namespace