public IObservable <Win32Printer> AntecedentAsync(Win32PrinterDriver inDependent, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveSourceAsync(scope, inDependent.AsCimInstance(), options); return(instances.Select(i => (Win32Printer)scope.Mapper.Create(scope, i))); }
public System.UInt32 AddPrinterDriver(Win32PrinterDriver inDriverInfo) { var parameters = new CimMethodParametersCollection(); if (inDriverInfo != null) { parameters.Add(CimMethodParameter.Create("DriverInfo", inDriverInfo.AsCimInstance(), CimType.Instance, inDriverInfo == null ? CimFlags.NullValue : CimFlags.None)); } var result = InfrastuctureObjectScope.CimSession.InvokeMethod(InnerCimInstance, "AddPrinterDriver", parameters); return((System.UInt32)result.ReturnValue.Value); }