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)
187
string query) : this(new
ManagementScope
(scope), new EventQuery(query), null) { }
201
EventWatcherOptions options) : this(new
ManagementScope
(scope), new EventQuery(query), options) { }
564
Scope = new
ManagementScope
();
System\Management\ManagementObject.cs (7)
423
this.scope = new
ManagementScope
(nsPath);
458
: this(new
ManagementScope
(scopeString), new ManagementPath(pathString), options) { }
572
Scope = new
ManagementScope
(nsPath);
1744
destinationScope = new
ManagementScope
(path, scope);
1876
destinationScope = new
ManagementScope
(path, scope);
2568
scope = new
ManagementScope
(nsPath);
2572
scope = new
ManagementScope
();
System\Management\ManagementObjectSearcher.cs (2)
138
this(new
ManagementScope
(scope), new ObjectQuery(queryString), null)
183
this(new
ManagementScope
(scope), new ObjectQuery(queryString), options)
System\Management\ManagementScope.cs (1)
628
ManagementScope scopeTmp = new
ManagementScope
(null, null, null);
99 references to ManagementScope
System.Management (99)
System\Management\ManagementBaseObject.cs (1)
285
ManagementScope
scope)
System\Management\ManagementClass.cs (6)
73
newClass.scope =
ManagementScope
._Clone(mgObj.scope);
116
ManagementScope
scope)
122
newClass.scope =
ManagementScope
._Clone(scope);
144
public 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>
242
public ManagementClass(
ManagementScope
scope, ManagementPath path, ObjectGetOptions options)
System\Management\ManagementEventWatcher.cs (11)
116
private
ManagementScope
scope;
142
public 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>
175
ManagementScope
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>
213
ManagementScope
scope,
218
this.scope =
ManagementScope
._Clone(scope, new IdentifierChangedEventHandler(HandleIdentifierChange));
220
this.scope =
ManagementScope
._Clone(null, new IdentifierChangedEventHandler(HandleIdentifierChange));
283
public
ManagementScope
Scope
293
ManagementScope
oldScope = scope;
294
scope = (
ManagementScope
)value.Clone();
System\Management\ManagementObject.cs (16)
73
internal
ManagementScope
scope;
158
newObject.scope =
ManagementScope
._Clone(mgObj.scope);
180
ManagementScope
scope)
188
newObject.scope =
ManagementScope
._Clone(scope, new IdentifierChangedEventHandler(newObject.HandleIdentifierChange));
229
public 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>
372
public ManagementObject(
ManagementScope
scope, ManagementPath path, ObjectGetOptions options)
378
private void ManagementObjectCTOR(
ManagementScope
scope, ManagementPath path, ObjectGetOptions options)
417
this.scope =
ManagementScope
._Clone(scope, new IdentifierChangedEventHandler(HandleIdentifierChange));
478
/// <para> A <see cref='System.Management.
ManagementScope
'/>.</para>
506
public
ManagementScope
Scope
510
return scope ??=
ManagementScope
._Clone(null);
519
scope =
ManagementScope
._Clone((
ManagementScope
)value, new IdentifierChangedEventHandler(HandleIdentifierChange));
1741
ManagementScope
destinationScope = null;
1874
ManagementScope
destinationScope = null;
System\Management\ManagementObjectCollection.cs (4)
63
internal
ManagementScope
scope;
70
ManagementScope
scope,
80
this.scope = (
ManagementScope
)scope.Clone();
82
this.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
67
private
ManagementScope
scope;
86
public 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>
161
public 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>
205
public ManagementObjectSearcher(
ManagementScope
scope, ObjectQuery query, EnumerationOptions options)
207
this.scope =
ManagementScope
._Clone(scope);
245
public
ManagementScope
Scope
254
scope = (
ManagementScope
)value.Clone();
496
scope =
ManagementScope
._Clone(null);
System\Management\ManagementOperationWatcher.cs (3)
214
ManagementScope
scope,
254
ManagementScope
scope,
278
ManagementScope
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
618
internal ManagementScope(ManagementPath path,
ManagementScope
scope)
621
internal static
ManagementScope
_Clone(
ManagementScope
scope)
623
return
ManagementScope
._Clone(scope, null);
626
internal static
ManagementScope
_Clone(
ManagementScope
scope, IdentifierChangedEventHandler handler)
628
ManagementScope
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>
875
public
ManagementScope
Clone()
877
return
ManagementScope
._Clone(this);
893
/// <para>Connects this <see cref='System.Management.
ManagementScope
'/> to the actual WMI
963
ManagementScope
threadParam = (
ManagementScope
)o;
1036
private readonly
ManagementScope
scope;
1037
internal SecuredIEnumWbemClassObjectHandler(
ManagementScope
theScope, IEnumWbemClassObject pEnumWbemClassObject)
1089
private readonly
ManagementScope
scope;
1091
internal SecuredConnectHandler(
ManagementScope
theScope)
1140
private readonly
ManagementScope
scope;
1141
internal SecuredIWbemServicesHandler(
ManagementScope
theScope, IWbemServices pWbemServiecs)
1380
private readonly
ManagementScope
scope;
1382
internal SecurityHandler(
ManagementScope
theScope)
1477
if ((sourceType == typeof(
ManagementScope
)))
1518
if (value is
ManagementScope
&& destinationType == typeof(InstanceDescriptor))
1520
ManagementScope
obj = ((
ManagementScope
)(value));
1521
ConstructorInfo ctor = typeof(
ManagementScope
).GetConstructor(new Type[] { typeof(string) });
System\Management\WmiEventSink.cs (8)
15
private readonly
ManagementScope
scope;
27
private static
ManagementScope
scopeParameter;
35
ManagementScope
scope,
64
ManagementScope
scope,
87
this.scope = (
ManagementScope
)scope.Clone();
244
private static
ManagementScope
scopeParameter;
252
ManagementScope
scope,
280
ManagementScope
scope,