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)
35Debug.Assert(_ctx != null || this.unpersisted); 37return _ctx; 50Debug.Assert(_ctx != null || this.unpersisted); 52if (_ctx == null) 55return _ctx.ContextType; 232ContextType ct = (_ctx == null) ? ContextType.Domain : _ctx.ContextType; 251ContextType ct = (_ctx == null) ? ContextType.Domain : _ctx.ContextType; 304if (_ctx == null) 317Debug.Assert(storeCtxToUse == _ctx.ContextForType(this.GetType())); 324Debug.Assert(storeCtxToUse == _ctx.QueryCtx); 347if (context.ContextType == ContextType.Machine || _ctx.ContextType == ContextType.Machine) 353if (context == _ctx) 361if (context.ContextType != _ctx.ContextType) 381Debug.Assert(newStoreCtx == _ctx.ContextForType(this.GetType())); 402_ctx.QueryCtx.Load(this, PropertyNames.PrincipalName); 441_ctx.QueryCtx = newStoreCtx; // so Updates go to the right StoreCtx 460Debug.Assert(_ctx != null); 462_ctx.QueryCtx.Delete(this); 514if (_ctx != null) 516return _ctx.ContextForType(this.GetType()).NativeType(this); 525Debug.Assert(_ctx != null); 526return _ctx.QueryCtx.NativeType(this); 764{ return _ctx; } 802if (_ctx == null) 810return _ctx.ContextForType(this.GetType()); 814return _ctx.QueryCtx; 971if (_ctx == null) 996Debug.Assert(_ctx != null); 1001_ctx.QueryCtx.Load(this, principalPropertyName);