14 instantiations of ManagementScope
System.Management (14)
System\Management\ManagementClass.cs (1)
268: base(new ManagementScope(scope), new ManagementPath(path), options) { }
System\Management\ManagementEventWatcher.cs (3)
187string query) : this(new ManagementScope(scope), new EventQuery(query), null) { } 201EventWatcherOptions options) : this(new ManagementScope(scope), new EventQuery(query), options) { } 564Scope = new ManagementScope();
System\Management\ManagementObject.cs (7)
423this.scope = new ManagementScope(nsPath); 458: this(new ManagementScope(scopeString), new ManagementPath(pathString), options) { } 572Scope = new ManagementScope(nsPath); 1744destinationScope = new ManagementScope(path, scope); 1876destinationScope = new ManagementScope(path, scope); 2568scope = new ManagementScope(nsPath); 2572scope = new ManagementScope();
System\Management\ManagementObjectSearcher.cs (2)
138this(new ManagementScope(scope), new ObjectQuery(queryString), null) 183this(new ManagementScope(scope), new ObjectQuery(queryString), options)
System\Management\ManagementScope.cs (1)
628ManagementScope scopeTmp = new ManagementScope(null, null, null);
99 references to ManagementScope
System.Management (99)
System\Management\ManagementBaseObject.cs (1)
285ManagementScope scope)
System\Management\ManagementClass.cs (6)
73newClass.scope = ManagementScope._Clone(mgObj.scope); 116ManagementScope scope) 122newClass.scope = ManagementScope._Clone(scope); 144public ManagementClass() : this((ManagementScope)null, (ManagementPath)null, null) { } 222/// <param name='scope'>A <see cref='System.Management.ManagementScope'/> that specifies the scope (server and namespace) where the WMI class resides. </param> 242public ManagementClass(ManagementScope scope, ManagementPath path, ObjectGetOptions options)
System\Management\ManagementEventWatcher.cs (11)
116private ManagementScope scope; 142public ManagementEventWatcher() : this((ManagementScope)null, null, null) { } 172/// <param name='scope'>A <see cref='System.Management.ManagementScope'/> object representing the scope (namespace) in which the watcher will listen for events.</param> 175ManagementScope scope, 209/// <param name='scope'>A <see cref='System.Management.ManagementScope'/> object representing the scope (namespace) in which the watcher will listen for events.</param> 213ManagementScope scope, 218this.scope = ManagementScope._Clone(scope, new IdentifierChangedEventHandler(HandleIdentifierChange)); 220this.scope = ManagementScope._Clone(null, new IdentifierChangedEventHandler(HandleIdentifierChange)); 283public ManagementScope Scope 293ManagementScope oldScope = scope; 294scope = (ManagementScope)value.Clone();
System\Management\ManagementObject.cs (16)
73internal ManagementScope scope; 158newObject.scope = ManagementScope._Clone(mgObj.scope); 180ManagementScope scope) 188newObject.scope = ManagementScope._Clone(scope, new IdentifierChangedEventHandler(newObject.HandleIdentifierChange)); 229public ManagementObject() : this((ManagementScope)null, null, null) { } 338/// <param name='scope'>A <see cref='System.Management.ManagementScope'/> representing the scope in which the WMI object resides. In this version, scopes can only be WMI namespaces.</param> 372public ManagementObject(ManagementScope scope, ManagementPath path, ObjectGetOptions options) 378private void ManagementObjectCTOR(ManagementScope scope, ManagementPath path, ObjectGetOptions options) 417this.scope = ManagementScope._Clone(scope, new IdentifierChangedEventHandler(HandleIdentifierChange)); 478/// <para> A <see cref='System.Management.ManagementScope'/>.</para> 506public ManagementScope Scope 510return scope ??= ManagementScope._Clone(null); 519scope = ManagementScope._Clone((ManagementScope)value, new IdentifierChangedEventHandler(HandleIdentifierChange)); 1741ManagementScope destinationScope = null; 1874ManagementScope destinationScope = null;
System\Management\ManagementObjectCollection.cs (4)
63internal ManagementScope scope; 70ManagementScope scope, 80this.scope = (ManagementScope)scope.Clone(); 82this.scope = ManagementScope._Clone(null);
System\Management\ManagementObjectSearcher.cs (11)
20/// query represented in an <see cref='System.Management.ObjectQuery'/> or it's derivatives, and optionally a <see cref='System.Management.ManagementScope'/> representing the WMI namespace 67private ManagementScope scope; 86public ManagementObjectSearcher() : this((ManagementScope)null, null, null) { } 145/// <param name='scope'>A <see cref='System.Management.ManagementScope'/> representing the scope in which to invoke the query.</param> 161public ManagementObjectSearcher(ManagementScope scope, ObjectQuery query) : this(scope, query, null) { } 190/// <param name='scope'>A <see cref='System.Management.ManagementScope'/> specifying the scope of the query</param> 205public ManagementObjectSearcher(ManagementScope scope, ObjectQuery query, EnumerationOptions options) 207this.scope = ManagementScope._Clone(scope); 245public ManagementScope Scope 254scope = (ManagementScope)value.Clone(); 496scope = ManagementScope._Clone(null);
System\Management\ManagementOperationWatcher.cs (3)
214ManagementScope scope, 254ManagementScope scope, 278ManagementScope scope,
System\Management\ManagementScope.cs (39)
579/// <para> Gets or sets a value indicating whether the <see cref='System.Management.ManagementScope'/> is currently bound to a 588/// explicitly calls <see cref='System.Management.ManagementScope.Connect'/>(), or uses the scope for any 618internal ManagementScope(ManagementPath path, ManagementScope scope) 621internal static ManagementScope _Clone(ManagementScope scope) 623return ManagementScope._Clone(scope, null); 626internal static ManagementScope _Clone(ManagementScope scope, IdentifierChangedEventHandler handler) 628ManagementScope scopeTmp = new ManagementScope(null, null, null); 673/// of the <see cref='System.Management.ManagementScope'/> class. 676/// <para>Initializes a new instance of the <see cref='System.Management.ManagementScope'/> class, with default values. This is the 699/// <para>Initializes a new instance of the <see cref='System.Management.ManagementScope'/> class representing 702/// <param name='path'>A <see cref='System.Management.ManagementPath'/> containing the path to a server and namespace for the <see cref='System.Management.ManagementScope'/>.</param> 713/// <para>Initializes a new instance of the <see cref='System.Management.ManagementScope'/> class representing the specified scope 716/// <param name='path'>The server and namespace path for the <see cref='System.Management.ManagementScope'/>.</param> 725/// <para>Initializes a new instance of the <see cref='System.Management.ManagementScope'/> class representing the specified scope path, 728/// <param name='path'>The server and namespace for the <see cref='System.Management.ManagementScope'/>.</param> 745/// <para>Initializes a new instance of the <see cref='System.Management.ManagementScope'/> class representing the specified scope path, 748/// <param name='path'>A <see cref='System.Management.ManagementPath'/> containing the path to the server and namespace for the <see cref='System.Management.ManagementScope'/>.</param> 830/// <para>Gets or sets the path for the <see cref='System.Management.ManagementScope'/>.</para> 873/// <para>A new copy of the <see cref='System.Management.ManagementScope'/>.</para> 875public ManagementScope Clone() 877return ManagementScope._Clone(this); 893/// <para>Connects this <see cref='System.Management.ManagementScope'/> to the actual WMI 963ManagementScope threadParam = (ManagementScope)o; 1036private readonly ManagementScope scope; 1037internal SecuredIEnumWbemClassObjectHandler(ManagementScope theScope, IEnumWbemClassObject pEnumWbemClassObject) 1089private readonly ManagementScope scope; 1091internal SecuredConnectHandler(ManagementScope theScope) 1140private readonly ManagementScope scope; 1141internal SecuredIWbemServicesHandler(ManagementScope theScope, IWbemServices pWbemServiecs) 1380private readonly ManagementScope scope; 1382internal SecurityHandler(ManagementScope theScope) 1477if ((sourceType == typeof(ManagementScope))) 1518if (value is ManagementScope && destinationType == typeof(InstanceDescriptor)) 1520ManagementScope obj = ((ManagementScope)(value)); 1521ConstructorInfo ctor = typeof(ManagementScope).GetConstructor(new Type[] { typeof(string) });
System\Management\WmiEventSink.cs (8)
15private readonly ManagementScope scope; 27private static ManagementScope scopeParameter; 35ManagementScope scope, 64ManagementScope scope, 87this.scope = (ManagementScope)scope.Clone(); 244private static ManagementScope scopeParameter; 252ManagementScope scope, 280ManagementScope scope,