2 writes to _ctx
System.DirectoryServices.AccountManagement (2)
System\DirectoryServices\AccountManagement\Principal.cs (2)
369
_ctx
= context;
770
_ctx
= value;
31 references to _ctx
System.DirectoryServices.AccountManagement (31)
System\DirectoryServices\AccountManagement\Principal.cs (31)
35
Debug.Assert(
_ctx
!= null || this.unpersisted);
37
return
_ctx
;
50
Debug.Assert(
_ctx
!= null || this.unpersisted);
52
if (
_ctx
== null)
55
return
_ctx
.ContextType;
232
ContextType ct = (
_ctx
== null) ? ContextType.Domain :
_ctx
.ContextType;
251
ContextType ct = (
_ctx
== null) ? ContextType.Domain :
_ctx
.ContextType;
304
if (
_ctx
== null)
317
Debug.Assert(storeCtxToUse ==
_ctx
.ContextForType(this.GetType()));
324
Debug.Assert(storeCtxToUse ==
_ctx
.QueryCtx);
347
if (context.ContextType == ContextType.Machine ||
_ctx
.ContextType == ContextType.Machine)
353
if (context ==
_ctx
)
361
if (context.ContextType !=
_ctx
.ContextType)
381
Debug.Assert(newStoreCtx ==
_ctx
.ContextForType(this.GetType()));
402
_ctx
.QueryCtx.Load(this, PropertyNames.PrincipalName);
441
_ctx
.QueryCtx = newStoreCtx; // so Updates go to the right StoreCtx
460
Debug.Assert(
_ctx
!= null);
462
_ctx
.QueryCtx.Delete(this);
514
if (
_ctx
!= null)
516
return
_ctx
.ContextForType(this.GetType()).NativeType(this);
525
Debug.Assert(
_ctx
!= null);
526
return
_ctx
.QueryCtx.NativeType(this);
764
{ return
_ctx
; }
802
if (
_ctx
== null)
810
return
_ctx
.ContextForType(this.GetType());
814
return
_ctx
.QueryCtx;
971
if (
_ctx
== null)
996
Debug.Assert(
_ctx
!= null);
1001
_ctx
.QueryCtx.Load(this, principalPropertyName);