10 writes to scope
System.Management (10)
86 references to scope
System.Management (86)
managementobject.cs (77)
160newObject.scope = ManagementScope._Clone(mgObj.scope);
425this.scope.IdentifierChanged += new IdentifierChangedEventHandler(HandleIdentifierChange);
507if (scope == null)
510return scope;
516if (null != scope)
517scope.IdentifierChanged -= new IdentifierChangedEventHandler(HandleIdentifierChange);
574if ((nsPath.Length > 0) && (scope != null) && (scope.IsDefaulted))
796securityHandler = scope.GetSecurityHandler();
798status = scope.GetSecuredIWbemServicesHandler( scope.GetIWbemServices() ).GetObject_(path.RelativePath,
912IWbemServices wbemServices = scope.GetIWbemServices();
917scope,
928securityHandler = scope.GetSecurityHandler();
930status = scope.GetSecuredIWbemServicesHandler(wbemServices).GetObjectAsync_(path.RelativePath,
1066securityHandler = scope.GetSecurityHandler();
1068status = scope.GetSecuredIWbemServicesHandler(scope.GetIWbemServices() ).ExecQuery_(
1092return new ManagementObjectCollection(scope, o, enumWbem);
1178scope,
1193securityHandler = scope.GetSecurityHandler();
1195status = scope.GetSecuredIWbemServicesHandler( scope.GetIWbemServices() ).ExecQueryAsync_(
1300securityHandler = scope.GetSecurityHandler();
1302status = scope.GetSecuredIWbemServicesHandler(scope.GetIWbemServices()).ExecQuery_(
1326return new ManagementObjectCollection(scope, o, enumWbem);
1406WmiEventSink sink = watcher.GetNewSink(scope, o.Context);
1418securityHandler = scope.GetSecurityHandler();
1420status = scope.GetSecuredIWbemServicesHandler( scope.GetIWbemServices() ).ExecQueryAsync_(
1477IWbemServices wbemServices = scope.GetIWbemServices();
1492securityHandler = scope.GetSecurityHandler();
1499status = scope.GetSecuredIWbemServicesHandler(wbemServices).PutClass_( wbemObject,
1506status = scope.GetSecuredIWbemServicesHandler(wbemServices).PutInstance_(wbemObject,
1583newPath = new ManagementPath(scope.Path.Path);
1602newPath = new ManagementPath(scope.Path.Path);
1649IWbemServices wbemServices = scope.GetIWbemServices();
1650WmiEventSink sink = watcher.GetNewPutSink(scope,
1651o.Context, scope.Path.GetNamespacePath((int)tag_WBEM_GET_TEXT_FLAGS.WBEMPATH_GET_SERVER_AND_NAMESPACE_ONLY), ClassName);
1662securityHandler = scope.GetSecurityHandler();
1666status = scope.GetSecuredIWbemServicesHandler( wbemServices ).PutClassAsync_(
1674status = scope.GetSecuredIWbemServicesHandler( wbemServices ).PutInstanceAsync_(
1771destinationScope = new ManagementScope(path, scope);
1800status = scope.GetSecuredIWbemServicesHandler( wbemServices ).PutClass_(
1808status = scope.GetSecuredIWbemServicesHandler( wbemServices ).PutInstance_(
1904destinationScope = new ManagementScope(path, scope);
1980IWbemServices wbemServices = scope.GetIWbemServices();
1987securityHandler = scope.GetSecurityHandler();
1991status = scope.GetSecuredIWbemServicesHandler( wbemServices ).DeleteClass_(
1999status = scope.GetSecuredIWbemServicesHandler( wbemServices ).DeleteInstance_(
2052IWbemServices wbemServices = scope.GetIWbemServices();
2053WmiEventSink sink = watcher.GetNewSink(scope, o.Context);
2058securityHandler = scope.GetSecurityHandler();
2062status = scope.GetSecuredIWbemServicesHandler( wbemServices ).DeleteClassAsync_(path.RelativePath,
2069status = scope.GetSecuredIWbemServicesHandler( wbemServices ).DeleteInstanceAsync_(path.RelativePath,
2317IWbemServices wbemServices = scope.GetIWbemServices();
2324securityHandler = scope.GetSecurityHandler();
2329status = scope.GetSecuredIWbemServicesHandler( scope.GetIWbemServices() ).ExecMethod_(
2393WmiEventSink sink = watcher.GetNewSink(scope, o.Context);
2398securityHandler = scope.GetSecurityHandler();
2405status = scope.GetSecuredIWbemServicesHandler( scope.GetIWbemServices() ).ExecMethodAsync_(
2479new ManagementClass(scope, classPath, null);
2600if (null == scope)
2617scope.IdentifierChanged += new IdentifierChangedEventHandler(HandleIdentifierChange);
2619else if ((null == scope.Path) || scope.Path.IsEmpty)
2625scope.Path = new ManagementPath(nsPath);
2627scope.Path = ManagementPath.DefaultPath;
2630lock (scope)
2632if (!scope.IsConnected)
2634scope.Initialize();
2656IWbemServices wbemServices = scope.GetIWbemServices();
2663securityHandler = scope.GetSecurityHandler();
2670status = scope.GetSecuredIWbemServicesHandler( wbemServices ).GetObject_(objectPath, options.Flags, options.GetContext(), ref tempObj, IntPtr.Zero);