10 writes to scope
System.Management (10)
System\Management\ManagementClass.cs (2)
73
newClass.
scope
= ManagementScope._Clone(mgObj.scope);
122
newClass.
scope
= ManagementScope._Clone(scope);
System\Management\ManagementObject.cs (8)
158
newObject.
scope
= ManagementScope._Clone(mgObj.scope);
188
newObject.
scope
= ManagementScope._Clone(scope, new IdentifierChangedEventHandler(newObject.HandleIdentifierChange));
417
this.
scope
= ManagementScope._Clone(scope, new IdentifierChangedEventHandler(HandleIdentifierChange));
423
this.
scope
= new ManagementScope(nsPath);
510
return
scope
??= ManagementScope._Clone(null);
519
scope
= ManagementScope._Clone((ManagementScope)value, new IdentifierChangedEventHandler(HandleIdentifierChange));
2568
scope
= new ManagementScope(nsPath);
2572
scope
= new ManagementScope();
83 references to scope
System.Management (83)
System\Management\ManagementClass.cs (9)
73
newClass.scope = ManagementScope._Clone(mgObj.
scope
);
476
status =
scope
.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices()).CreateInstanceEnum_(
607
status =
scope
.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices()).CreateInstanceEnumAsync_(
692
status =
scope
.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices()).CreateClassEnum_(
759
status =
scope
.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices()).CreateClassEnumAsync_(
1043
status =
scope
.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices()).ExecQuery_(
1152
status =
scope
.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices()).ExecQueryAsync_(
1244
status =
scope
.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices()).ExecQuery_(
1338
status =
scope
.GetSecuredIWbemServicesHandler(Scope.GetIWbemServices()).ExecQueryAsync_(
System\Management\ManagementObject.cs (74)
158
newObject.scope = ManagementScope._Clone(mgObj.
scope
);
424
this.
scope
.IdentifierChanged += new IdentifierChangedEventHandler(HandleIdentifierChange);
516
if (null !=
scope
)
517
scope
.IdentifierChanged -= new IdentifierChangedEventHandler(HandleIdentifierChange);
571
if ((nsPath.Length > 0) && (
scope
!= null) && (
scope
.IsDefaulted))
783
securityHandler =
scope
.GetSecurityHandler();
785
status =
scope
.GetSecuredIWbemServicesHandler(
scope
.GetIWbemServices()).GetObject_(path.RelativePath,
898
IWbemServices wbemServices =
scope
.GetIWbemServices();
903
scope
,
914
securityHandler =
scope
.GetSecurityHandler();
916
status =
scope
.GetSecuredIWbemServicesHandler(wbemServices).GetObjectAsync_(path.RelativePath,
1051
securityHandler =
scope
.GetSecurityHandler();
1053
status =
scope
.GetSecuredIWbemServicesHandler(
scope
.GetIWbemServices()).ExecQuery_(
1076
return new ManagementObjectCollection(
scope
, o, enumWbem);
1162
scope
,
1177
securityHandler =
scope
.GetSecurityHandler();
1179
status =
scope
.GetSecuredIWbemServicesHandler(
scope
.GetIWbemServices()).ExecQueryAsync_(
1283
securityHandler =
scope
.GetSecurityHandler();
1285
status =
scope
.GetSecuredIWbemServicesHandler(
scope
.GetIWbemServices()).ExecQuery_(
1308
return new ManagementObjectCollection(
scope
, o, enumWbem);
1388
WmiEventSink sink = watcher.GetNewSink(
scope
, o.Context);
1400
securityHandler =
scope
.GetSecurityHandler();
1402
status =
scope
.GetSecuredIWbemServicesHandler(
scope
.GetIWbemServices()).ExecQueryAsync_(
1458
IWbemServices wbemServices =
scope
.GetIWbemServices();
1473
securityHandler =
scope
.GetSecurityHandler();
1480
status =
scope
.GetSecuredIWbemServicesHandler(wbemServices).PutClass_(wbemObject,
1487
status =
scope
.GetSecuredIWbemServicesHandler(wbemServices).PutInstance_(wbemObject,
1560
newPath = new ManagementPath(
scope
.Path.Path);
1579
newPath = new ManagementPath(
scope
.Path.Path);
1623
IWbemServices wbemServices =
scope
.GetIWbemServices();
1624
WmiEventSink sink = watcher.GetNewPutSink(
scope
,
1625
o.Context,
scope
.Path.GetNamespacePath((int)tag_WBEM_GET_TEXT_FLAGS.WBEMPATH_GET_SERVER_AND_NAMESPACE_ONLY), ClassName);
1636
securityHandler =
scope
.GetSecurityHandler();
1640
status =
scope
.GetSecuredIWbemServicesHandler(wbemServices).PutClassAsync_(
1648
status =
scope
.GetSecuredIWbemServicesHandler(wbemServices).PutInstanceAsync_(
1744
destinationScope = new ManagementScope(path,
scope
);
1773
status =
scope
.GetSecuredIWbemServicesHandler(wbemServices).PutClass_(
1781
status =
scope
.GetSecuredIWbemServicesHandler(wbemServices).PutInstance_(
1876
destinationScope = new ManagementScope(path,
scope
);
1951
IWbemServices wbemServices =
scope
.GetIWbemServices();
1958
securityHandler =
scope
.GetSecurityHandler();
1962
status =
scope
.GetSecuredIWbemServicesHandler(wbemServices).DeleteClass_(
1970
status =
scope
.GetSecuredIWbemServicesHandler(wbemServices).DeleteInstance_(
2022
IWbemServices wbemServices =
scope
.GetIWbemServices();
2023
WmiEventSink sink = watcher.GetNewSink(
scope
, o.Context);
2028
securityHandler =
scope
.GetSecurityHandler();
2032
status =
scope
.GetSecuredIWbemServicesHandler(wbemServices).DeleteClassAsync_(path.RelativePath,
2039
status =
scope
.GetSecuredIWbemServicesHandler(wbemServices).DeleteInstanceAsync_(path.RelativePath,
2291
securityHandler =
scope
.GetSecurityHandler();
2296
status =
scope
.GetSecuredIWbemServicesHandler(
scope
.GetIWbemServices()).ExecMethod_(
2359
WmiEventSink sink = watcher.GetNewSink(
scope
, o.Context);
2364
securityHandler =
scope
.GetSecurityHandler();
2371
status =
scope
.GetSecuredIWbemServicesHandler(
scope
.GetIWbemServices()).ExecMethodAsync_(
2444
new ManagementClass(
scope
, classPath, null);
2559
if (null ==
scope
)
2576
scope
.IdentifierChanged += new IdentifierChangedEventHandler(HandleIdentifierChange);
2578
else if ((null ==
scope
.Path) ||
scope
.Path.IsEmpty)
2584
scope
.Path = new ManagementPath(nsPath);
2586
scope
.Path = ManagementPath.DefaultPath;
2589
lock (
scope
)
2591
if (!
scope
.IsConnected)
2593
scope
.Initialize();
2615
IWbemServices wbemServices =
scope
.GetIWbemServices();
2622
securityHandler =
scope
.GetSecurityHandler();
2629
status =
scope
.GetSecuredIWbemServicesHandler(wbemServices).GetObject_(objectPath, options.Flags, options.GetContext(), ref tempObj, IntPtr.Zero);