Udostępnij przez


Właściwość Computer.Parent

Pobiera obiekt narzędzia, który jest elementem nadrzędnym Computer obiektu.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Utility
Zestaw:  Microsoft.SqlServer.Management.Utility (w Microsoft.SqlServer.Management.Utility.dll)

Składnia

'Deklaracja
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectCardinality.One)> _
Public Property Parent As Utility
    Get
    Set
'Użycie
Dim instance As Computer
Dim value As Utility

value = instance.Parent

instance.Parent = value
[SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectCardinality.One)]
public Utility Parent { get; set; }
[SfcObjectAttribute(SfcObjectRelationship::ParentObject, SfcObjectCardinality::One)]
public:
property Utility^ Parent {
    Utility^ get ();
    void set (Utility^ value);
}
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectCardinality.One)>]
member Parent : Utility with get, set
function get Parent () : Utility
function set Parent (value : Utility)

Wartość właściwości

Typ: Microsoft.SqlServer.Management.Utility.Utility
A Utility wartość określająca nadrzędnym Computer obiektu.

Przykłady

VC #

System.Console.WriteLine(computer.Parent);

VB

System.Console.WriteLine(computer.Parent)

PowerShell

Write-Host $computer.Parent