ProtocolField Constructor ()
Initializes a new instance of the ProtocolField class.
Namespace: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Sub New
public ProtocolField ()
public:
ProtocolField ()
public ProtocolField ()
public function ProtocolField ()
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.
Beispiel
The following examples show how to use this default constructor to create a protocol field and then add it to a collection of protocol fields:
// Define a protocol field and set properties.
ProtocolField fileProtocolField1 = new ProtocolField();
fileProtocolField1.Name = "LeavingFrom";
fileProtocolField1.Parent = fileProtocol;
fileProtocolField1.FieldReference = "LeavingFrom";
fileProtocol.ProtocolFields.Add(fileProtocolField1);
' Define a protocol field and set properties.
Dim fileProtocolField1 As ProtocolField = New ProtocolField()
fileProtocolField1.Name = "LeavingFrom"
fileProtocolField1.Parent = fileProtocol
fileProtocolField1.FieldReference = "LeavingFrom"
fileProtocol.ProtocolFields.Add(fileProtocolField1)
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
ProtocolField Class
ProtocolField Members
Microsoft.SqlServer.Management.Nmo Namespace