Share via


HierarchyInfo.Connection Property

Definition

Gets the connection associated with the node.

protected public:
 virtual property Microsoft::Web::Management::Client::Connection ^ Connection { Microsoft::Web::Management::Client::Connection ^ get(); };
protected internal virtual Microsoft.Web.Management.Client.Connection Connection { get; }
member this.Connection : Microsoft.Web.Management.Client.Connection
Protected Friend Overridable ReadOnly Property Connection As Connection

Property Value

The Connection that represents the connection for the node.

Examples

The following example implements the Connection property.

protected override Connection Connection
{
    get
    {
        Connection connection = (Connection)GetService(typeof(Connection));
        return connection;
    }
}
if (this.IsConnected())
    MyNotifyCon();

Applies to