10 writes to scope
System.Management (10)
managementclass.cs (2)
72 newClass.scope = ManagementScope._Clone(mgObj.scope); 121 newClass.scope = ManagementScope._Clone(scope);
managementobject.cs (8)
160newObject.scope = ManagementScope._Clone(mgObj.scope); 190newObject.scope = ManagementScope._Clone(scope, new IdentifierChangedEventHandler(newObject.HandleIdentifierChange)); 418this.scope = ManagementScope._Clone(scope, new IdentifierChangedEventHandler(HandleIdentifierChange)); 424this.scope = new ManagementScope(nsPath); 508return scope = ManagementScope._Clone(null); 519scope = ManagementScope._Clone((ManagementScope)value, new IdentifierChangedEventHandler(HandleIdentifierChange)); 2609scope = new ManagementScope(nsPath); 2613scope = new ManagementScope();
86 references to scope
System.Management (86)
managementclass.cs (9)
72 newClass.scope = ManagementScope._Clone(mgObj.scope); 476status = scope.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices() ).CreateInstanceEnum_(ClassName, 611status = scope.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices() ).CreateInstanceEnumAsync_( 700status = scope.GetSecuredIWbemServicesHandler( Scope.GetIWbemServices() ).CreateClassEnum_(ClassName, 770status = scope.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices() ).CreateClassEnumAsync_(ClassName, 1077 status = scope.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices() ).ExecQuery_( 1187status = scope.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices() ).ExecQueryAsync_( 1284status = scope.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices() ).ExecQuery_( 1387status = scope.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices()).ExecQueryAsync_(
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);