Dela via


Computer Constructor

Initializes a new instance of the Computer class.

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New Computer()
public Computer()
public:
Computer()
new : unit -> Computer
public function Computer()

Remarks

The default constructor initializes any fields to their default values.

Examples

VC#

Computer computer;
computer = new Computer();

VB

Dim computer As Computer
computer = New Computer()

PowerShell

$computer = New-Object Microsoft.SqlServer.Management.Utility.Computer()