44 references to UserState
PresentationFramework (12)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (2)
1752if (e.UserState is MakeVisibleData) 1754MakeVisibleData data = (MakeVisibleData)e.UserState;
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
267e = new GetPageCompletedEventArgs(documentPage, e.PageNumber, e.Error, e.Cancelled, e.UserState);
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (1)
730if (e.PageNumber == this.PageNumber && e.UserState == this)
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1124bringIntoViewState = e.UserState as BringIntoViewState;
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
1004if (!e.Cancelled && e.Error == null && e.UserState == _bringContentPositionIntoViewToken)
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
917GetPageAsyncRequest completedRequest = (GetPageAsyncRequest)args.UserState;
src\Framework\System\windows\Documents\TextEditor.cs (1)
1536Invariant.Assert(e.UserState == this && this.TextView == sender);
src\Framework\System\windows\Documents\TextEditorSelection.cs (4)
1794TextEditor This = e.UserState as TextEditor; 1824TextEditor This = e.UserState as TextEditor; 1856This = e.UserState as TextEditor; 1919This = e.UserState as TextEditor;
System (4)
compmod\system\componentmodel\RunWorkerCompletedEventArgs.cs (1)
39return base.UserState;
net\System\Net\mail\SmtpClient.cs (1)
752if (e.UserState == tcs)
net\System\Net\NetworkInformation\ping.cs (1)
566if (e.UserState == tcs)
net\System\Net\webclient.cs (1)
2911if (e.UserState == tcs)
System.Net (7)
net\PeerToPeer\Collaboration\ContactManager.cs (1)
1604m_createContactAsyncList.Remove(args.UserState);
net\PeerToPeer\Collaboration\Peer.cs (3)
863InviteAsyncHelper helper = m_inviteAsyncHelperList[args.UserState]; 868"userState {0} is being removed from the pending async list", args.UserState.GetHashCode()); 869m_inviteAsyncHelperList.Remove(args.UserState);
net\PeerToPeer\PeerNameResolver.cs (3)
865PeerNameResolverHelper helper = m_PeerNameResolverHelperList[args.UserState]; 873"userState {0} is being removed from the pending async list", args.UserState.GetHashCode()); 874m_PeerNameResolverHelperList.Remove(args.UserState);
System.ServiceModel.Activities (13)
System\ServiceModel\Activities\WorkflowControlClient.cs (6)
448new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 471new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 493runCompleted(this, new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 514suspendCompleted(this, new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 534unsuspendCompleted(this, new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 554terminateCompleted(this, new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
System\ServiceModel\Activities\WorkflowUpdateableControlClient.cs (7)
499new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 522new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 544runCompleted(this, new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 565suspendCompleted(this, new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 585unsuspendCompleted(this, new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 605terminateCompleted(this, new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 627updateCompleted(this, new AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
System.ServiceModel.Discovery (8)
System\ServiceModel\Discovery\DiscoveryClient.cs (2)
1147if (e.UserState is SyncOperationState) 1149SyncOperationState syncOperationState = (SyncOperationState)e.UserState;
System\ServiceModel\Discovery\Version11\AnnouncementInnerClient11.cs (2)
212this.HelloOperationCompletedEventHandler(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 233this.ByeOperationCompletedEventHandler(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
System\ServiceModel\Discovery\VersionApril2005\AnnouncementInnerClientApril2005.cs (2)
164this.HelloOperationCompletedEventHandler(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 209this.ByeOperationCompletedEventHandler(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
System\ServiceModel\Discovery\VersionCD1\AnnouncementInnerClientCD1.cs (2)
212this.HelloOperationCompletedEventHandler(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 233this.ByeOperationCompletedEventHandler(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));