Beispiel #1
0
        public Connector GetConnector(int index)
        {
            IConnector connector;

            Marshal.ThrowExceptionForHR(_DeviceTopology.GetConnector(index, out connector));
            return(new Connector(connector));
        }
Beispiel #2
0
 /// <summary>
 /// Retrieves the connector at the supplied index
 /// </summary>
 public Connector GetConnector(uint index)
 {
     deviceTopologyInterface.GetConnector(index, out var connectorInterface);
     return(new Connector(connectorInterface));
 }
 public static IConnector GetConnector(this IDeviceTopology deviceTopology)
 {
     deviceTopology.GetConnector(0, out var resultConnector);
     return(resultConnector);
 }