660 references to Empty
ComSvcConfig (7)
ComAdminWrapper.cs (2)
96clsid = Guid.Empty; 546appId = Guid.Empty;
EndpointConfigContainer.cs (4)
505Guid clsid = Guid.Empty; 506Guid appId = Guid.Empty; 552ec = new EndpointConfig(Guid.Empty, 563ec = new EndpointConfig(Guid.Empty,
SvcFileManager.cs (1)
121appid = Guid.Empty;
mscorlib (89)
microsoft\win32\unsafenativemethods.cs (1)
187Guid emptyGuid = Guid.Empty;
system\diagnostics\eventing\activitytracker.cs (3)
93activityId = Guid.Empty; 94relatedActivityId = Guid.Empty; 169activityId = Guid.Empty;
system\diagnostics\eventing\eventsource.cs (13)
404Guid g = Guid.Empty; 545if (activityId == Guid.Empty) 622if (retval == Guid.Empty) 1190Guid activityId = Guid.Empty; 1191Guid relActivityId = Guid.Empty; 1205if (activityId != Guid.Empty) 1207if (relActivityId != Guid.Empty) 1482if (eventSourceGuid == Guid.Empty) 1920Guid activityId = Guid.Empty; 1921Guid relatedActivityId = Guid.Empty; 1937if (activityId != Guid.Empty) 1939if (relatedActivityId != Guid.Empty) 4792if (activityId == Guid.Empty)
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (5)
313relatedActivityId == Guid.Empty ? null : pRelated); 619Guid activityId = Guid.Empty; 620Guid relatedActivityId = Guid.Empty; 632if (activityId != Guid.Empty) 634if (relatedActivityId != Guid.Empty)
system\globalization\sortversion.cs (1)
32if(customVersion == Guid.Empty) {
system\guid.cs (7)
176parsedGuid = Guid.Empty; 240this = Guid.Empty; 279result = Guid.Empty; 331result = Guid.Empty; 355result = Guid.Empty; 366result = Guid.Empty; 1149Contract.Ensures(Contract.Result<Guid>() != Guid.Empty);
system\reflection\emit\unmanagedmarshal.cs (5)
36return new UnmanagedMarshal(unmanagedType, Guid.Empty, 0, (UnmanagedType) 0); 40return new UnmanagedMarshal(UnmanagedType.ByValTStr, Guid.Empty, elemCount, (UnmanagedType) 0); 45return new UnmanagedMarshal(UnmanagedType.SafeArray, Guid.Empty, 0, elemType); 50return new UnmanagedMarshal(UnmanagedType.ByValArray, Guid.Empty, elemCount, (UnmanagedType) 0); 55return new UnmanagedMarshal(UnmanagedType.LPArray, Guid.Empty, 0, elemType);
system\runtime\remoting\channelservices.cs (1)
1061Guid g = Guid.Empty;
system\runtime\remoting\crosscontextchannel.cs (3)
74Guid g = Guid.Empty; 235Guid g = Guid.Empty; 337Guid g = Guid.Empty;
system\runtime\remoting\terminatorsinks.cs (1)
859Guid g = Guid.Empty;
system\security\accesscontrol\acl.cs (28)
1275objectType = Guid.Empty; 1276inheritedObjectType = Guid.Empty; 1301Guid objectType = ( ace is ObjectAce ) ? (( ObjectAce ) ace ).ObjectAceType : Guid.Empty; 1302Guid newObjectType = ( newAce is ObjectAce ) ? (( ObjectAce ) newAce ).ObjectAceType : Guid.Empty; 1309Guid inheritedObjectType = ( ace is ObjectAce ) ? (( ObjectAce ) ace ).InheritedObjectAceType : Guid.Empty; 1310Guid newInheritedObjectType = ( newAce is ObjectAce ) ? (( ObjectAce ) newAce ).InheritedObjectAceType : Guid.Empty; 2425Guid ps_ObjectAceType = Guid.Empty; 2426Guid ps_InheritedObjectAceType = Guid.Empty; 2432Guid as_ObjectAceType = Guid.Empty; 2433Guid as_InheritedObjectAceType = Guid.Empty; 2439Guid ms_ObjectAceType = Guid.Empty; 2440Guid ms_InheritedObjectAceType = Guid.Empty; 2975AddQualifiedAce( sid, AceQualifier.SystemAudit, accessMask, GenericAce.AceFlagsFromAuditFlags( auditFlags ) | GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), ObjectAceFlags.None, Guid.Empty, Guid.Empty ); 2981SetQualifiedAce( sid, AceQualifier.SystemAudit, accessMask, GenericAce.AceFlagsFromAuditFlags( auditFlags ) | GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), ObjectAceFlags.None, Guid.Empty, Guid.Empty ); 2986return RemoveQualifiedAces(sid, AceQualifier.SystemAudit, accessMask, GenericAce.AceFlagsFromAuditFlags( auditFlags ) | GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), true, ObjectAceFlags.None, Guid.Empty, Guid.Empty ); 2991RemoveQualifiedAcesSpecific( sid, AceQualifier.SystemAudit, accessMask, GenericAce.AceFlagsFromAuditFlags( auditFlags ) | GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), ObjectAceFlags.None, Guid.Empty, Guid.Empty ); 3132AddQualifiedAce( sid, accessType == AccessControlType.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), ObjectAceFlags.None, Guid.Empty, Guid.Empty ); 3140SetQualifiedAce( sid, accessType == AccessControlType.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), ObjectAceFlags.None, Guid.Empty, Guid.Empty ); 3147return RemoveQualifiedAces( sid, accessType == AccessControlType.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), false, ObjectAceFlags.None, Guid.Empty, Guid.Empty ); 3154RemoveQualifiedAcesSpecific(sid, accessType == AccessControlType.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), ObjectAceFlags.None, Guid.Empty, Guid.Empty );
system\security\accesscontrol\directoryobjectsecurity.cs (12)
304_securityDescriptor.DiscretionaryAcl.RemoveAccess(AccessControlType.Deny, sid, -1, InheritanceFlags.ContainerInherit, 0, ObjectAceFlags.None, Guid.Empty, Guid.Empty); 313result = _securityDescriptor.DiscretionaryAcl.RemoveAccess(AccessControlType.Allow, sid, -1, InheritanceFlags.ContainerInherit, 0, ObjectAceFlags.None, Guid.Empty, Guid.Empty); 345_securityDescriptor.DiscretionaryAcl.RemoveAccess(AccessControlType.Allow, sid, -1, InheritanceFlags.ContainerInherit, 0, ObjectAceFlags.None, Guid.Empty, Guid.Empty); 354result = _securityDescriptor.DiscretionaryAcl.RemoveAccess(AccessControlType.Deny, sid, -1, InheritanceFlags.ContainerInherit, 0, ObjectAceFlags.None, Guid.Empty, Guid.Empty); 435_securityDescriptor.SystemAcl.RemoveAudit(AuditFlags.Failure | AuditFlags.Success, sid, -1, InheritanceFlags.ContainerInherit, 0, ObjectAceFlags.None, Guid.Empty, Guid.Empty); 444result = _securityDescriptor.SystemAcl.RemoveAudit(AuditFlags.Failure | AuditFlags.Success, sid, -1, InheritanceFlags.ContainerInherit, 0, ObjectAceFlags.None, Guid.Empty, Guid.Empty);
system\security\accesscontrol\rules.cs (8)
192if (( !objectType.Equals( Guid.Empty )) && (( accessMask & ObjectAce.AccessMaskWithObjectType ) != 0 )) 199_objectType = Guid.Empty; 202if (( !inheritedObjectType.Equals( Guid.Empty )) && ((inheritanceFlags & InheritanceFlags.ContainerInherit ) != 0 )) 209_inheritedObjectType = Guid.Empty; 300if (( !objectType.Equals( Guid.Empty )) && (( accessMask & ObjectAce.AccessMaskWithObjectType ) != 0 )) 307_objectType = Guid.Empty; 310if (( !inheritedObjectType.Equals( Guid.Empty )) && ((inheritanceFlags & InheritanceFlags.ContainerInherit ) != 0 )) 317_inheritedObjectType = Guid.Empty;
system\threading\Tasks\TaskContinuation.cs (1)
667Guid savedActivityId = Guid.Empty;
PresentationCore (24)
Core\CSharp\MS\Internal\Ink\ExtendedProperty.cs (1)
35if (id == Guid.Empty)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (3)
466System.Diagnostics.Debug.Assert(guid == Guid.Empty); 470if (guid == Guid.Empty) 825if (id == Guid.Empty)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (1)
162if (guid == Guid.Empty)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (4)
122return Guid.Empty; 146return Guid.Empty; 164if (Guid.Empty != guid) 173if (Guid.Empty != guid)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (3)
763if (guid == Guid.Empty) 1616if (guid == Guid.Empty) 1656if (guid == Guid.Empty)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (2)
207if (guid == Guid.Empty) 331if (guid == Guid.Empty)
Core\CSharp\MS\Win32\UnsafeNativeMethodsPenimc.cs (1)
385Guid unused = Guid.Empty;
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (1)
208if ( propertyDataId == Guid.Empty )
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (5)
91Guid clsId = Guid.Empty; 155Guid clsId = Guid.Empty; 179if (clsId != Guid.Empty && clsId != expectedClsId) 294Guid clsId = Guid.Empty; 1620clsId = Guid.Empty;
Core\CSharp\System\Windows\Media\Imaging\BitmapEncoder.cs (2)
109if (containerFormat == Guid.Empty) 534return Guid.Empty;
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (1)
1890guidFormat = Guid.Empty;
PresentationFramework (18)
src\Framework\MS\Internal\AppModel\Journaling.cs (2)
376if (endingPF.ParentPageFunctionId == Guid.Empty) 394Debug.Assert(endingPF.ParentPageFunctionId == Guid.Empty,
src\Framework\MS\Internal\AppModel\OleCmdHelper.cs (1)
196else if(guidCmdGroup.Equals(Guid.Empty))
src\Framework\System\Windows\Annotations\Annotation.cs (3)
94_id = Guid.Empty; 161if (id.Equals(Guid.Empty)) 699if (_id.Equals(Guid.Empty))
src\Framework\System\Windows\Annotations\AnnotationResource.cs (3)
98if (Guid.Empty.Equals(id)) 464Guid tempId = Guid.Empty; 493if (Guid.Empty.Equals(tempId))
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
448Guid guid = Guid.Empty;
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
704if (launcherApp != null && guidCommandGroup == Guid.Empty)
src\Framework\System\Windows\Interop\DynamicScriptObject.cs (3)
258Guid guid = Guid.Empty; 608Guid guid = Guid.Empty; 671Guid guid = Guid.Empty;
src\Framework\System\Windows\Navigation\NavigationService.cs (3)
1085if (!pf._Resume && pf.ParentPageFunctionId == Guid.Empty && _bp is PageFunctionBase) 1088Debug.Assert(pf.ParentPageFunctionId != Guid.Empty); 4376private Guid _guidId = Guid.Empty;
src\Framework\System\Windows\Navigation\PageFunction.cs (1)
42ParentPageFunctionId = Guid.Empty;
SMDiagnostics (3)
System\ServiceModel\Diagnostics\Activity.cs (1)
26if (activityId != Guid.Empty)
System\ServiceModel\Diagnostics\ExceptionUtility.cs (1)
264ExceptionUtility.activityId = Guid.Empty;
System\ServiceModel\Diagnostics\LegacyDiagnosticTrace.cs (1)
148using ((this.ShouldUseActivity && Guid.Empty != activityId) ? Activity.CreateActivity(activityId) : null)
SMSvcHost (1)
System\ServiceModel\Activation\MsmqActivation.cs (1)
323Interlocked.Increment(ref queueIdCounter), Guid.Empty);
System (2)
compmod\system\diagnostics\CorrelationManager.cs (1)
27return Guid.Empty;
compmod\system\diagnostics\XmlWriterTraceListener.cs (1)
216InternalWrite(Guid.Empty.ToString("B"));
System.Activities (28)
System\Activities\BookmarkScope.cs (4)
58Fx.Assert(value != Guid.Empty, "Cannot set this to Guid.Empty."); 121return this.IsInitialized && this.id == Guid.Empty; 132if (id == Guid.Empty) 187Fx.Assert(this.id != Guid.Empty, "If we're not the default but we're initialized then we must have a non-Empty Guid.");
System\Activities\BookmarkScopeHandle.cs (1)
82this.bookmarkScope = context.CreateBookmarkScope(Guid.Empty, this);
System\Activities\DurableInstancing\LoadWorkflowByInstanceKeyCommand.cs (3)
45return (this.keysToAssociate == null || this.keysToAssociate.Count == 0) && AssociateInstanceKeyToInstanceId == Guid.Empty; 68if (LookupInstanceKey == Guid.Empty) 73if (AssociateInstanceKeyToInstanceId == Guid.Empty)
System\Activities\HandleInitializationContext.cs (1)
97return this.executor.BookmarkScopeManager.CreateAndRegisterScope(Guid.Empty);
System\Activities\NativeActivityContext.cs (3)
362return CreateBookmarkScope(Guid.Empty); 374if (scopeId != Guid.Empty && !this.executor.KeysAllowed) 393Fx.Assert(id != Guid.Empty, "The caller should make sure this isn't empty.");
System\Activities\Runtime\ActivityExecutor.cs (3)
383this.instanceIdSet = value != Guid.Empty; 1473oldActivityId = Guid.Empty; 1495oldActivityId = Guid.Empty;
System\Activities\Runtime\BookmarkScopeManager.cs (2)
32this.defaultScope = CreateAndRegisterScope(Guid.Empty); 425if (scopeId == Guid.Empty)
System\Activities\Runtime\Scheduler.cs (3)
233Guid oldActivityId = Guid.Empty; 396Guid oldActivityId = Guid.Empty; 397Guid workflowInstanceId = Guid.Empty;
System\Activities\Tracking\CustomTrackingRecord.cs (1)
29: this(Guid.Empty, name, level)
System\Activities\Tracking\EtwTrackingParticipant.cs (2)
43if (EtwDiagnosticTrace.DefaultEtwProviderId == Guid.Empty) 64if (value == Guid.Empty)
System\Activities\WorkflowApplication.cs (5)
630Fx.Assert(this.Id != Guid.Empty, "should have a valid Id at this point"); 1635if (instanceId == Guid.Empty) 1656if (instanceId == Guid.Empty) 1806if (instanceId == Guid.Empty) 2130if (instanceId == Guid.Empty)
System.Activities.DurableInstancing (14)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (1)
90parameters.Add(new SqlParameter { ParameterName = "@workflowHostType", SqlDbType = SqlDbType.UniqueIdentifier, Value = (base.Store.WorkflowHostType != Guid.Empty) ? base.Store.WorkflowHostType : (object) DBNull.Value });
System\Activities\DurableInstancing\InstanceLockTracking.cs (1)
17this.InstanceId = Guid.Empty;
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (1)
84GenerateLoadSqlCommand(command, loadType, Guid.Empty, instanceId, null);
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (2)
142if ((this.serviceDeploymentHash != Guid.Empty) && (this.serviceDeploymentId == 0)) 429if ((this.serviceDeploymentHash != Guid.Empty) && (this.serviceDeploymentId == 0))
System\Activities\DurableInstancing\SerializationUtilities.cs (4)
295Guid idHash = Guid.Empty; 296Guid idAnyRevisionHash = Guid.Empty; 390xmlWriter.WriteElementString("DefinitionIdentityHash", Guid.Empty.ToString()); 391xmlWriter.WriteElementString("DefinitionIdentityAnyRevisionHash", Guid.Empty.ToString());
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreAsyncResult.cs (2)
208Guid instanceId = (thisPtr.InstancePersistenceContext != null) ? thisPtr.InstancePersistenceContext.InstanceView.InstanceId : Guid.Empty; 274Guid instanceId = (this.InstancePersistenceContext != null) ? this.InstancePersistenceContext.InstanceView.InstanceId : Guid.Empty;
System\Activities\DurableInstancing\StoreUtilities.cs (2)
71returnValue = new InstanceKeyCollisionException(commandName, Guid.Empty, 72new InstanceKey(reader.GetGuid(1)), Guid.Empty);
System\Activities\DurableInstancing\TryLoadRunnableWorkflowAsyncResult.cs (1)
31if (base.Store.WorkflowHostType == Guid.Empty)
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\ObjectReferenceService.cs (1)
110return Guid.Empty;
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (3)
479error.SourceReferenceId = Guid.Empty; 499if (error.SourceReferenceId != Guid.Empty) 842if (sourceReferenceId == Guid.Empty)
System.AddIn (3)
System\Addin\Hosting\AddInProcess.cs (2)
165return Guid.Empty; 215_guid = Guid.Empty;
System\Addin\Hosting\RemotingHelper.cs (1)
15internal static readonly String s_emptyGuid = Guid.Empty.ToString();
System.Core (11)
Microsoft\Scripting\Ast\SymbolDocumentInfo.cs (2)
47get { return Guid.Empty; } 54get { return Guid.Empty; }
System\Diagnostics\Eventing\EventProvider.cs (7)
515return WriteTransferEvent(ref eventDescriptor, Guid.Empty, eventPayload); 568(activityId == Guid.Empty) ? null : &activityId, 619(activityId == Guid.Empty) ? null : &activityId, 752if (relatedActivityId == Guid.Empty && s_preWin7) 766(activityId == Guid.Empty) ? null : &activityId, 767(relatedActivityId == Guid.Empty && !s_preWin7)? null : &relatedActivityId, 794(activityId == Guid.Empty) ? null : &activityId,
System\Diagnostics\Eventing\Reader\EventTask.cs (1)
62this.guid = Guid.Empty;
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (1)
1195return (val.GuidReference == IntPtr.Zero) ? Guid.Empty : Marshal.PtrToStructure(val.GuidReference, typeof(Guid));
System.Data (19)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ObjectReferenceService.cs (1)
110return Guid.Empty;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (3)
479error.SourceReferenceId = Guid.Empty; 499if (error.SourceReferenceId != Guid.Empty) 842if (sourceReferenceId == Guid.Empty)
fx\src\data\System\Data\OleDb\DBPropSet.cs (1)
200Debug.Assert(Guid.Empty != propertySet, "invalid propertySet");
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (1)
526static internal Guid IID_NULL = Guid.Empty;
fx\src\data\System\Data\OleDb\OleDbCommand.cs (1)
906tableID.uGuid = Guid.Empty;
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (1)
517info.guid = Guid.Empty;
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
290private Guid _originalConnectionId = Guid.Empty; 709return Guid.Empty;
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (3)
507Guid handle = Guid.Empty; // Conversation_handle. Always close this! 570handle = Guid.Empty; 581if (handle == Guid.Empty) { // This should only happen if failure occurred, or if non-QN format received.
fx\src\data\System\Data\SqlClient\SqlException.cs (4)
27private Guid _clientConnectionId = Guid.Empty; 135return CreateException(errorCollection, serverVersion, Guid.Empty); 139Guid connectionId = (internalConnection == null) ? Guid.Empty : internalConnection._clientConnectionId; 143if ((internalConnection.OriginalClientConnectionId != Guid.Empty) && (internalConnection.OriginalClientConnectionId != internalConnection.ClientConnectionId)) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (2)
305internal Guid _clientConnectionId = Guid.Empty; 309private Guid _originalClientConnectionId = Guid.Empty;
System.Data.Entity (2)
System\Data\Metadata\MetadataWorkspace.cs (2)
125private Guid _metadataWorkspaceId = Guid.Empty; 1484if (Guid.Equals(Guid.Empty, _metadataWorkspaceId))
System.Data.SqlXml (1)
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
283symDoc = ((ModuleBuilder) this.typeBldr.Module).DefineDocument(fileName, LanguageGuid, VendorGuid, Guid.Empty);
System.Messaging (4)
System\Messaging\Message.cs (2)
740return Guid.Empty; 751if (value.Equals(Guid.Empty))
System\Messaging\MessageQueueInstaller.cs (2)
36private Guid category = Guid.Empty; 548return !Category.Equals(Guid.Empty);
System.Net (20)
net\PeerToPeer\Collaboration\Peer.cs (2)
291Guid guid = Guid.Empty; 428return InternalGetAllObjects(Guid.Empty, false);
net\PeerToPeer\Collaboration\PeerApplication.cs (1)
246if (m_id.Equals(Guid.Empty)){
net\PeerToPeer\Collaboration\PeerCollaboration.cs (1)
566if (application.Id.Equals(Guid.Empty)){
net\PeerToPeer\Collaboration\PeerContact.cs (11)
635if (appGuid.Equals(Guid.Empty)) 655if (applicationToInvite.Id == Guid.Empty) 724if (appGuid.Equals(Guid.Empty)) 747if (applicationToInvite.Id == Guid.Empty) 782if (appGuid.Equals(Guid.Empty)) 815if (applicationToInvite.Id == Guid.Empty) 848if (appGuid.Equals(Guid.Empty)) 881if (applicationToInvite.Id == Guid.Empty) 909return InternalGetAllApplications(Guid.Empty, false); 936return InternalGetApplications(Guid.Empty, false, peerEndPoint); 1127return InternalGetObjects(Guid.Empty, false, peerEndPoint);
net\PeerToPeer\Collaboration\PeerNearMe.cs (4)
694if (applicationToInvite.Id == Guid.Empty) 728if (appGuid.Equals(Guid.Empty)) 764if (appGuid.Equals(Guid.Empty)) 791if (applicationToInvite.Id == Guid.Empty)
net\PeerToPeer\Collaboration\PeerObject.cs (1)
198if (m_id.Equals(Guid.Empty))
System.Runtime.DurableInstancing (48)
System\Runtime\DurableInstancing\InstanceCollisionException.cs (1)
52if (instanceId != Guid.Empty)
System\Runtime\DurableInstancing\InstanceCompleteException.cs (1)
52if (instanceId != Guid.Empty)
System\Runtime\DurableInstancing\InstanceHandle.cs (7)
49Fx.Assert(instanceId != Guid.Empty, "Should be validating this."); 83return Guid.Empty; 90Fx.Assert(value != Guid.Empty, "Cannot set an empty Id."); 91Fx.Assert(this.id == Guid.Empty, "Cannot set Id more than once."); 326Fx.Assert(instanceId != Guid.Empty, "BindInstance called with empty Guid."); 333Fx.Assert(Id == Guid.Empty, "Instance already boud in BindInstance."); 355Fx.Assert(Id != Guid.Empty, "Bind called before instance bound.");
System\Runtime\DurableInstancing\InstanceHandleConflictException.cs (1)
52if (instanceId != Guid.Empty)
System\Runtime\DurableInstancing\InstanceKey.cs (3)
24this.Value = Guid.Empty; 35if (value == Guid.Empty) 119if (value.CompareTo(Guid.Empty) == 0)
System\Runtime\DurableInstancing\InstanceKeyCollisionException.cs (4)
56InstanceKey = guid == Guid.Empty ? null : new InstanceKey(guid); 71info.AddValue(InstanceKeyName, (InstanceKey != null && InstanceKey.IsValid) ? InstanceKey.Value : Guid.Empty, typeof(Guid)); 78if (instanceId != Guid.Empty && conflictingInstanceId != Guid.Empty)
System\Runtime\DurableInstancing\InstanceKeyCompleteException.cs (3)
38: this(commandName, Guid.Empty, instanceKey, ToMessage(instanceKey), innerException) 53InstanceKey = guid == Guid.Empty ? null : new InstanceKey(guid); 65info.AddValue(InstanceKeyName, (InstanceKey != null && InstanceKey.IsValid) ? InstanceKey.Value : Guid.Empty, typeof(Guid));
System\Runtime\DurableInstancing\InstanceKeyNotReadyException.cs (3)
38: this(commandName, Guid.Empty, instanceKey, ToMessage(instanceKey), innerException) 53InstanceKey = guid == Guid.Empty ? null : new InstanceKey(guid); 65info.AddValue(InstanceKeyName, (InstanceKey != null && InstanceKey.IsValid) ? InstanceKey.Value : Guid.Empty, typeof(Guid));
System\Runtime\DurableInstancing\InstanceLockedException.cs (4)
45: this(commandName, instanceId, Guid.Empty, null, message, innerException) 96if (instanceId == Guid.Empty) 105if (instanceId == Guid.Empty) 109if (instanceOwnerId == Guid.Empty)
System\Runtime\DurableInstancing\InstanceLockLostException.cs (1)
52if (instanceId != Guid.Empty)
System\Runtime\DurableInstancing\InstanceNotReadyException.cs (1)
52if (instanceId != Guid.Empty)
System\Runtime\DurableInstancing\InstanceOwner.cs (6)
76Fx.Assert(handle.Id != Guid.Empty, "Unbind called on a handle not even bound to an instance."); 178Fx.Assert(reference.InstanceHandle.Id != Guid.Empty, "Must be bound to an instance already."); 244Fx.Assert(reference.InstanceHandle.Id != Guid.Empty, "InstanceBound called, but the handle isn't bound."); 354if (wasBoundToInstanceId != Guid.Empty) 389if (handleRef.InstanceHandle.Id == Guid.Empty) 421else if (handleRef.InstanceHandle.Id != Guid.Empty)
System\Runtime\DurableInstancing\InstanceOwnerException.cs (1)
68if (instanceOwnerId == Guid.Empty)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (9)
91return InstanceHandle.Owner == null ? Guid.Empty : InstanceHandle.Owner.OwnerToken; 143if (instanceOwnerId == Guid.Empty) 147if (lockToken == Guid.Empty) 163if (instanceId == Guid.Empty) 430if (key == Guid.Empty) 452if (key == Guid.Empty) 494if (key == Guid.Empty) 529if (key == Guid.Empty) 594if (key == Guid.Empty)
System\Runtime\DurableInstancing\InstanceStore.cs (1)
56if (instanceId == Guid.Empty)
System\Runtime\DurableInstancing\InstanceView.cs (2)
42Fx.Assert(instanceId != Guid.Empty, "Null instanceId passed to InstanceView ctor."); 258Fx.Assert(instanceId != Guid.Empty, "Null instanceId passed to BindInstance.");
System.Runtime.Serialization (2)
System\Xml\UniqueID.cs (1)
296guid = Guid.Empty;
System\Xml\XmlDictionaryReader.cs (1)
928value = Guid.Empty;
System.ServiceModel (95)
System\ServiceModel\Channels\CommunicationObject.cs (41)
125throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosing"), Guid.Empty, this); 131throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosed"), Guid.Empty, this); 180throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 191throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosing"), Guid.Empty, this); 243throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnOpening"), Guid.Empty, this); 299throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 312throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosing"), Guid.Empty, this); 318throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosed"), Guid.Empty, this); 434throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 437throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 589throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnOpening"), Guid.Empty, this); 595throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnOpened"), Guid.Empty, this); 790throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 801throw TraceUtility.ThrowHelperError(CreateAbortedException(), Guid.Empty, this); 836throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 839throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 867throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 870throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 873throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 893throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this); 896throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this); 899throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 902throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 919throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this); 922throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this); 925throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 928throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 931throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 945throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 948throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 954throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 957throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 960throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 970throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 980throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 983throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this); 992throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this); 995throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this); 1012throw TraceUtility.ThrowHelperError(exception, Guid.Empty, this); 1123Guid.Empty, this.communicationObject); 1197Guid.Empty, this.communicationObject);
System\ServiceModel\Channels\HttpRequestContext.cs (1)
203Guid relatedId = this.eventTraceActivity != null ? this.eventTraceActivity.ActivityId : Guid.Empty;
System\ServiceModel\Channels\ServiceChannel.cs (6)
665if (Trace.CorrelationManager.ActivityId == Guid.Empty) 704Guid previousId = rpc.EventTraceActivity != null ? rpc.EventTraceActivity.ActivityId : Guid.Empty; 979if (TraceUtility.MessageFlowTracingOnly && rpc.ActivityId != Guid.Empty) 1044if (rpc.ActivityId != Guid.Empty) 1047System.Runtime.Diagnostics.DiagnosticTraceBase.ActivityId = Guid.Empty; 1048rpc.ActivityId = Guid.Empty;
System\ServiceModel\Channels\SharedTcpTransportManager.cs (1)
76OnOpenInternal(0, Guid.Empty);
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceRecords.cs (4)
184Guid guidLogicalThreadID = Guid.Empty; 185Guid guidActivityID = Guid.Empty; 216Guid guidContextTrsansactionID = Guid.Empty; 230if (guidContextTrsansactionID != Guid.Empty)
System\ServiceModel\ComIntegration\ComPlusInstanceContextInitializer.cs (1)
98Guid assemblyGuid = Guid.Empty;
System\ServiceModel\ComIntegration\ComPlusInstanceProvider.cs (1)
44Guid incomingTransactionID = Guid.Empty;
System\ServiceModel\ComIntegration\ComPlusSynchronizationContext.cs (1)
72Guid guidLogicalThreadID = Guid.Empty;
System\ServiceModel\ComIntegration\ComPlusThreadInitializer.cs (2)
90Guid incomingTransactionID = Guid.Empty; 160Guid currentTransactionID = Guid.Empty;
System\ServiceModel\ComIntegration\DllHostInitializer.cs (2)
115Guid clsidToCompare = Guid.Empty; 116Guid appIdToCompare = Guid.Empty;
System\ServiceModel\ComIntegration\TypeCacheManager.cs (1)
269Assembly asm = ResolveAssemblyFromTypeLibID(Guid.Empty, typeLibId, typeLibVersion, false, noAssemblyGeneration);
System\ServiceModel\ComIntegration\WebHostedComPlusServiceHost.cs (2)
95Guid clsidFromConfig = Guid.Empty; 96Guid appidFromConfig = Guid.Empty;
System\ServiceModel\Diagnostics\ActivityIdHeader.cs (4)
37Guid guid = Guid.Empty; 77activityId = Guid.Empty; 78correlationId = Guid.Empty; 93return activityId != Guid.Empty;
System\ServiceModel\Diagnostics\EventTraceActivityHelper.cs (1)
100guid = Guid.Empty;
System\ServiceModel\Diagnostics\ServiceModelActivity.cs (3)
238if (activityId != Guid.Empty) 401using (DiagnosticUtility.ShouldUseActivity && Guid.Empty == activityId ? null : Activity.CreateActivity(this.Id)) 475if (DiagnosticUtility.TracingEnabled && activityId != Guid.Empty)
System\ServiceModel\Diagnostics\TraceUtility.cs (6)
584return activity == null ? Guid.Empty : activity.Id; 947DiagnosticTraceBase.ActivityId != Guid.Empty; 975Guid etwProviderId = Guid.Empty; 1058DiagnosticTraceBase.ActivityId = Guid.Empty; 1101Guid guid = Guid.Empty; 1109if (guid == Guid.Empty)
System\ServiceModel\Dispatcher\AsyncMethodInvoker.cs (3)
73if (activityId != Guid.Empty) 82if (activityId != Guid.Empty) 178if (activityId != Guid.Empty)
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
800(this.host != null && host.EventTraceActivity != null) ? this.host.EventTraceActivity.ActivityId : Guid.Empty);
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (2)
822else if (TraceUtility.ShouldPropagateActivity && reply != null && rpc.ResponseActivityId != Guid.Empty) 838if (rpc.ResponseActivityId != Guid.Empty)
System\ServiceModel\Dispatcher\MessageRpc.cs (3)
157this.ResponseActivityId = Guid.Empty; 461if (Guid.Empty == DiagnosticTraceBase.ActivityId) 464if (Guid.Empty != receivedActivityId)
System\ServiceModel\Dispatcher\ProxyRpc.cs (1)
42this.ActivityId = Guid.Empty;
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (2)
147if (activityId != Guid.Empty) 156if (activityId != Guid.Empty)
System\ServiceModel\PeerResolvers\CustomPeerResolverService.cs (3)
392if (updateInfo.RegistrationId == Guid.Empty || meshEntry == null) 498if (!unregisterInfo.HasBody() || String.IsNullOrEmpty(unregisterInfo.MeshId) || unregisterInfo.RegistrationId == Guid.Empty) 533if (!refreshInfo.HasBody() || String.IsNullOrEmpty(refreshInfo.MeshId) || refreshInfo.RegistrationId == Guid.Empty)
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
256throw TraceUtility.ThrowHelperError(e, Guid.Empty, this);
System\ServiceModel\Transactions\WsatProxy.cs (1)
106if (transactionId == Guid.Empty)
System\ServiceModel\Transactions\WsatRegistrationHeader.cs (1)
146if (transactionId == Guid.Empty)
System.ServiceModel.Activities (28)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (2)
535if (!thisPtr.instanceKey.IsValid && thisPtr.instanceId == Guid.Empty) 803if (this.instanceId == Guid.Empty)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (2)
1168this.instanceKey, Guid.Empty, this.additionalKeys, this.transaction, 1408IAsyncResult result = this.instanceManager.BeginGetInstance(Guid.Empty, null, null, this.instanceManager.Host.PersistTimeout,
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (1)
64Fx.Assert(instanceId != Guid.Empty, "Cannot provide an empty instance ID.");
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (10)
160if (key.Value == Guid.Empty) 165return new LoadOrCreateAsyncResult(this, key, Guid.Empty, false, 173if (instanceId == Guid.Empty && !loadAny) 177Fx.Assert(!loadAny || instanceId == Guid.Empty, "instanceId must be Empty for loadAny!"); 200if (key.Value == Guid.Empty) 481if (key != null || suggestedIdOrId != Guid.Empty) 524AssociateInstanceKeyToInstanceId = suggestedIdOrId == Guid.Empty ? Guid.NewGuid() : suggestedIdOrId, 564handle = this.store.CreateInstanceHandle(this.owner, suggestedIdOrId == Guid.Empty ? Guid.NewGuid() : suggestedIdOrId); 957this.context = new PersistenceContext(this.ppd, this.suggestedIdOrId == Guid.Empty ? Guid.NewGuid() : this.suggestedIdOrId, this.key, this.associatedKeys); 963if (this.suggestedIdOrId == Guid.Empty)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (1)
320Fx.Assert(instanceId != Guid.Empty, "instanceId cannot be empty.");
System\ServiceModel\Activities\InternalReceiveMessage.cs (3)
464Guid receivedActivityId = Guid.Empty; 493if (receivedActivityId != Guid.Empty && DiagnosticTraceBase.ActivityId != receivedActivityId) 825instance.AmbientActivityId = Guid.Empty;
System\ServiceModel\Activities\InternalSendMessage.cs (6)
745if (e2eTracingId == Guid.Empty) 1070instance.AmbientActivityId = Guid.Empty; 1132if (instance.E2EActivityId == Guid.Empty) 1213if (e2eActivityId != Guid.Empty) 2024this.ambientActivityId = Guid.Empty; 2030if (this.instance.E2EActivityId != Guid.Empty)
System\ServiceModel\Activities\WorkflowHostingEndpoint.cs (1)
64return Guid.Empty;
System\ServiceModel\Activities\WorkflowOperationContext.cs (2)
339if ((this.E2EActivityId != Guid.Empty) && (this.E2EActivityId != InternalReceiveMessage.TraceCorrelationActivityId)) 423this.ambientActivityId = Guid.Empty;
System.ServiceModel.Internals (9)
System\Runtime\ActionItem.cs (1)
304Guid previous = Guid.Empty;
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
517return id == null ? Guid.Empty : (Guid)id;
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (2)
61defaultEtwProviderId = Guid.Empty; 554if (etwProviderId != Guid.Empty && EtwDiagnosticTrace.isVistaOrGreater)
System\Runtime\Diagnostics\EventTraceActivity.cs (3)
41empty = new EventTraceActivity(Guid.Empty); 59if (guid == Guid.Empty) 66Trace.CorrelationManager.ActivityId = Guid.Empty;
System\Runtime\Fx.cs (2)
405Guid result = Guid.Empty; 428result = Guid.Empty;
System.Transactions (82)
System\Transactions\Enlistment.cs (3)
79Guid returnValue = Guid.Empty; 285Guid.Empty, 293Guid.Empty,
System\Transactions\EnlistmentState.cs (15)
68throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 74throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 80throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 86throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 92throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 98throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 104throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 111throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 118throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 125throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 132throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 139throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 146throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 153throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId); 160throw TransactionException.CreateEnlistmentStateException(SR.GetString(SR.TraceSourceLtm), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
System\Transactions\InternalTransaction.cs (4)
47internal Guid promoterType = Guid.Empty; 57internal Guid distributedTransactionIdentifierNonMSDTC = Guid.Empty; 283if ((this.promoterType != Guid.Empty) && (this.promoterType != TransactionInterop.PromoterTypeDtc)) 294if ((this.promoterType != Guid.Empty) && (this.promoterType != TransactionInterop.PromoterTypeDtc))
System\Transactions\Oletx\OletxEnlistment.cs (3)
56Guid transactionGuid = Guid.Empty; 92Guid myGuid = Guid.Empty; 127Guid myGuid = Guid.Empty;
System\Transactions\Oletx\OletxResourceManager.cs (6)
317Guid txUow = Guid.Empty; 395comException, enlistment == null ? Guid.Empty : enlistment.DistributedTxId ); 997Guid returnValue = Guid.Empty; 1020Guid resourceManagerId = Guid.Empty; 1032this.transactionGuidString = Guid.Empty.ToString(); 1047Guid rmId = Guid.Empty;
System\Transactions\Oletx\OleTxTransaction.cs (5)
96Guid returnValue = Guid.Empty; 639if ( txGuid.Equals( Guid.Empty ) ) 651Guid returnValue = Guid.Empty; 1253System.Guid tempGuid = Guid.Empty; 1417if ( Guid.Empty != this.txGuid )
System\Transactions\Oletx\OletxTransactionManager.cs (2)
600Guid txIdentifier = Guid.Empty; 781if ( resourceManagerIdentifier == Guid.Empty )
System\Transactions\Trace\Activity.cs (2)
21if (DiagnosticTrace.ShouldCorrelate && newGuid != Guid.Empty) 41(newGuid != Guid.Empty) &&
System\Transactions\Trace\DiagnosticTrace.cs (2)
50internal static Guid EmptyGuid = Guid.Empty; 451return id == null ? Guid.Empty : (Guid)id;
System\Transactions\Transaction.cs (6)
401Guid returnValue = Guid.Empty; 707if (resourceManagerIdentifier == Guid.Empty) 765if (resourceManagerIdentifier == Guid.Empty) 1284if (promoterType == Guid.Empty) 1330if (resourceManagerIdentifier == Guid.Empty) 1391if (distributedTransactionIdentifier == Guid.Empty)
System\Transactions\TransactionException.cs (1)
16return (distributedTxId != Guid.Empty && AppSettings.IncludeDistributedTxIdInExceptionMessage);
System\Transactions\TransactionInterop.cs (3)
195Guid txIdentifier = Guid.Empty; 574Guid txIdentifier = Guid.Empty; 618xactInfo.uow = Guid.Empty;
System\Transactions\TransactionManager.cs (2)
182if ( resourceManagerIdentifier == Guid.Empty ) 308if ( resourceManagerIdentifier == Guid.Empty )
System\Transactions\TransactionScope.cs (5)
696current == null ? Guid.Empty : current.DistributedTxId); 723current == null ? Guid.Empty : current.DistributedTxId ); 802current == null ? Guid.Empty : current.DistributedTxId); 1276newCurrent == null ? Guid.Empty : newCurrent.DistributedTxId); 1279throw TransactionException.Create(SR.GetString(SR.TraceSourceBase), e.Message, e, newCurrent == null ? Guid.Empty : newCurrent.DistributedTxId);
System\Transactions\TransactionState.cs (22)
868return Guid.Empty; 1452Debug.Assert(tx.promoterType != Guid.Empty, "InternalTransaction.PromoterType was not set in PSPEInitialize"); 1769Debug.Assert(tx.promoterType != Guid.Empty, "InternalTransaction.PromoterType was not set in Phase0PSPEInitialize"); 2592return Guid.Empty; 2917Debug.Assert((tx.promoterType == Guid.Empty) || (tx.promoterType == TransactionInterop.PromoterTypeDtc), "Promoted to MSTC but PromoterType is not TransactionInterop.PromoterTypeDtc"); 3457throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 3463throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 3469throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 3475throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 3637tx == null ? Guid.Empty : tx.DistributedTxId 4074SR.GetString(SR.CannotPromoteSnapshot), null, tx == null ? Guid.Empty : tx.DistributedTxId); 4640throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 4650throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 4659throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 4664throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 4669throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 4743throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 4753throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 4762throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 4767throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 4772throw TransactionException.Create(SR.GetString(SR.TooLate), tx == null ? Guid.Empty : tx.DistributedTxId); 4794tx == null ? Guid.Empty : tx.DistributedTxId
System\Transactions\VolatileEnlistmentState.cs (1)
263SR.GetString( SR.VolEnlistNoRecoveryInfo), null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId );
System.Web (9)
AspNetEventSource.cs (1)
62if (ActivityIdHelper.Instance == null || _writeEventWithRelatedActivityIdCoreDel == null || iisActivityId == Guid.Empty) {
Hosting\ISAPIWorkerRequest.cs (1)
1697_traceId = Guid.Empty;
Management\WebEvents.cs (3)
128Guid _id = Guid.Empty; 224if (_id == Guid.Empty) { 226if (_id == Guid.Empty) {
OutputCacheModule.cs (1)
1257Guid cachedVaryId = (cachedVary != null) ? cachedVary.CachedVaryId : Guid.Empty;
RootedObjects.cs (1)
220Debug.Assert(_requestActivityId != Guid.Empty);
ThreadContext.cs (2)
82if (g != Guid.Empty) { 196if (g != Guid.Empty) {
System.Windows.Forms (32)
winforms\Managed\System\WinForms\AxHost.cs (6)
3962if (rval == null || riid.Equals(Guid.Empty)) 6159if (rval == null || riid.Equals(Guid.Empty)) 6988if (!Guid.Empty.Equals(g)) { 7081if (ippb == null) return Guid.Empty; 7092return Guid.Empty; 7286if (!Guid.Empty.Equals(g)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (1)
164Guid g = Guid.Empty;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (4)
24Guid guid = Guid.Empty; 26if ((hr == NativeMethods.S_OK) && !guid.Equals(Guid.Empty)) { 64Guid guid = Guid.Empty; 67if (!guid.Equals(Guid.Empty)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (3)
45return Guid.Empty; 72bool validPropPage = !Guid.Empty.Equals(GetPropertyPageGuid(target, sender.DISPID)); 170if (!Guid.Empty.Equals(g)){
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
42strGuidBldr = Guid.Empty.ToString();
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
876Guid g = Guid.Empty; 1248Guid g = Guid.Empty;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (5)
184Guid g = Guid.Empty; 235bool dontProcess = typeGuid != Guid.Empty && processedLibraries != null && processedLibraries.Contains(typeGuid); 263if (typeGuid != Guid.Empty) { 289Guid g = Guid.Empty; 403if (!Guid.Empty.Equals(g)){
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (2)
165Guid g = Guid.Empty; 200Guid g = Guid.Empty;
winforms\Managed\System\WinForms\Control.cs (3)
16828Guid g = Guid.Empty; 17770: this(obj, addRefIntPtr, Guid.Empty) { 17808if (iid != Guid.Empty) {
winforms\Managed\System\WinForms\FileDialogCustomPlace.cs (2)
24private Guid _knownFolderGuid = Guid.Empty; 49this._knownFolderGuid = Guid.Empty;
winforms\Managed\System\WinForms\HtmlDocument.cs (1)
557Guid g = Guid.Empty;
winforms\Managed\System\WinForms\HtmlElement.cs (1)
606Guid g = Guid.Empty;
winforms\Managed\System\WinForms\RichTextBox.cs (1)
3839if (realClsid == Guid.Empty)
System.Workflow.Activities (16)
Common\CompModHelpers.cs (1)
1248while (contextGuid == Guid.Empty && contextActivity.Parent != null)
Delay.cs (4)
120if (this.SubscriptionID != Guid.Empty) 287System.Diagnostics.Debug.Assert(this.SubscriptionID != Guid.Empty); 336System.Diagnostics.Debug.Assert(this.SubscriptionID != Guid.Empty); 367this.SubscriptionID = Guid.Empty;
Executors\WorkflowWebService.cs (1)
153Guid workflowInstanceId = Guid.Empty;
InvokeSchedule.cs (2)
43public static readonly DependencyProperty InstanceIdProperty = DependencyProperty.Register("InstanceId", typeof(Guid), typeof(InvokeWorkflowActivity), new PropertyMetadata(Guid.Empty)); 177if (instanceId == Guid.Empty)
LocalService\MessageEventSubscriptionService.cs (1)
49: this(queueName, Guid.Empty, interfaceType, operation, subscriptionId)
LocalService\MethodMessage.cs (2)
95if (callbackCookie != Guid.Empty) 110callbackCookie = Guid.Empty;
LocalService\WorkflowMessageEventArgs.cs (1)
94: this(Guid.Empty, null, null, false)
StateMachineWorkflowInstance.cs (1)
41if (instanceId == Guid.Empty)
Task.cs (3)
539childStateInfo.RunId = Guid.Empty; 588childStateInfo.RunId = Guid.Empty; 823if (this[i, false].RunId != Guid.Empty)
System.Workflow.ComponentModel (9)
AuthoringOM\Activity.cs (1)
155public static readonly DependencyProperty ActivityContextGuidProperty = DependencyProperty.RegisterAttached("ActivityContextGuid", typeof(Guid), typeof(Activity), new PropertyMetadata(Guid.Empty));
AuthoringOM\ActivityExecutionContextCollection.cs (1)
375private Guid contextGuid = Guid.Empty; //
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (2)
35private Guid guid = Guid.Empty; 266if (this.guid == Guid.Empty)
AuthoringOM\ScheduleChanges.cs (1)
30internal static DependencyProperty WorkflowChangeVersionProperty = DependencyProperty.RegisterAttached("WorkflowChangeVersion", typeof(Guid), typeof(WorkflowChanges), new PropertyMetadata(Guid.Empty, DependencyPropertyOptions.NonSerialized));
AuthoringOM\Serializer\ActivitySurrogate.cs (1)
198private Guid workflowChangeVersion = Guid.Empty;
AuthoringOM\Utility.cs (2)
13Guid result = Guid.Empty; 35result = Guid.Empty;
Shared\CompModHelpers.cs (1)
1246while (contextGuid == Guid.Empty && contextActivity.Parent != null)
System.Workflow.Runtime (63)
AmbientEnvironment.cs (2)
132return Guid.Empty; 189System.Diagnostics.Debug.Assert(instanceId != Guid.Empty, "IsInServiceThread expects valid guid.");
DebugEngine\DebugController.cs (2)
275this.programId = Guid.Empty; 381this.programId = Guid.Empty;
Hosting\DefaultWorkflowSchedulerService.cs (6)
102if (workflowInstanceId == Guid.Empty) 115if (timerId == Guid.Empty) 117if (workflowInstanceId == Guid.Empty) 132if (timerId == Guid.Empty) 207Trace.CorrelationManager.ActivityId = Guid.Empty; 286Trace.CorrelationManager.ActivityId = Guid.Empty;
Hosting\ManualWorkflowSchedulerService.cs (9)
107if (workflowInstanceId.Equals(Guid.Empty)) 129if (workflowInstanceId.Equals(Guid.Empty)) 131if (timerId.Equals(Guid.Empty)) 143if (timerId.Equals(Guid.Empty)) 200timerId = Guid.Empty; 207Guid timerId = Guid.Empty; 246if (workflowInstanceId.Equals(Guid.Empty)) 340WorkflowTrace.Host.TraceEvent(TraceEventType.Error, 0, "Timeout for instance, {0} threw exception {1}", ci == null ? Guid.Empty : ci.InstanceId, e.Message); 346WorkflowTrace.Host.TraceEvent(TraceEventType.Error, 0, "Timeout for instance, {0} threw exception {1}", ci == null ? Guid.Empty : ci.InstanceId, e.Message);
Hosting\SqlWorkflowPersistenceService.cs (8)
155if (ownerId == Guid.Empty) 195p2.Value = Guid.Empty; 336instanceId = Guid.Empty; 435p2.Value = Guid.Empty; 577Guid currentOwnerId = Guid.Empty; 686private Guid _serviceInstanceId = Guid.Empty; 882if (Guid.Empty == _serviceInstanceId) 942RaiseServicesExceptionNotHandledEvent(e, Guid.Empty);
System\Activities\Statements\InteropEnvironment.cs (2)
115activity.Parent == null ? Guid.Empty : activity.Parent.ContextGuid, 133activity.Parent == null ? Guid.Empty : activity.Parent.ContextGuid,
System\Activities\Statements\InteropExecutor.cs (3)
216Guid timerId = Guid.Empty; 1028if (timerId == Guid.Empty) 1045if (timerId == Guid.Empty)
Tracking.cs (12)
376Guid callerInstanceId = Guid.Empty; 380Guid context = GetContext(exec.RootActivity), callerContext = Guid.Empty, callerParentContext = Guid.Empty; 390Debug.Assert(Guid.Empty != trackingCallingState.CallerWorkflowInstanceId, "Instance has an ActivityCallPath but CallerInstanceId is empty"); 463Guid callerInstanceId = Guid.Empty; 464Guid context = GetContext(exec.RootActivity), callerContext = Guid.Empty, callerParentContext = Guid.Empty; 476Debug.Assert(Guid.Empty != trackingCallingState.CallerWorkflowInstanceId, "Instance has an ActivityCallPath but CallerInstanceId is empty"); 635Guid parentContextGuid = Guid.Empty, contextGuid = Guid.Empty; 873Debug.Assert(contextGuid != Guid.Empty, "TrackingContext is empty"); 874Debug.Assert(parentContextGuid != Guid.Empty, "Parent TrackingContext is empty");
Tracking\SqlTrackingQuery.cs (1)
139inst.InvokingWorkflowInstanceId = Guid.Empty;
Tracking\SqlTrackingService.cs (2)
876if ((Guid.Empty == _parameters.InstanceId) || (null == record)) 1252if (Guid.Empty != _parameters.CallerInstanceId)
Tracking\SqlTrackingWorkflowInstance.cs (1)
45Guid _invoker = Guid.Empty;
Tracking\TrackingParameters.cs (5)
17private Guid _instanceId = Guid.Empty; 18private Guid _callerInstanceId = Guid.Empty; 21private Guid _contextGuid = Guid.Empty, _callerContextGuid = Guid.Empty, _callerParentContextGuid = Guid.Empty;
Tracking\TrackingRecord.cs (4)
54private Guid _contextGuid = Guid.Empty, _parentContextGuid = Guid.Empty; 161private Guid _contextGuid = Guid.Empty, _parentContextGuid = Guid.Empty;
WorkflowEnvironment.cs (1)
36if (currentInstanceId == Guid.Empty)
WorkflowExecutor.cs (2)
2576Guid parentContextGuid = Guid.Empty; 2836Guid instanceId = Guid.Empty;
WorkflowInstance.cs (1)
32if (instanceId == Guid.Empty)
WorkflowRuntime.cs (1)
254if (instanceId == Guid.Empty)
WorkflowStateRollbackService.cs (1)
96WorkflowExecutor newWorkflowExecutor = new WorkflowExecutor(Guid.Empty); // use a dummy guid while swapping executors
System.WorkflowServices (13)
System\ServiceModel\Activities\Description\WorkflowRuntimeEndpoint.cs (1)
51Guid instanceId = Guid.Empty;
System\ServiceModel\Dispatcher\DurableInstanceContextProvider.cs (3)
61if (instanceId != Guid.Empty) //Not an activation request. 100if (instanceId == Guid.Empty) //Activation Request. 211return Guid.Empty;
System\ServiceModel\Dispatcher\ServiceDurableInstance.cs (1)
52: base(contextManager, persistenceProvider == null ? Guid.Empty : persistenceProvider.Id)
System\ServiceModel\Dispatcher\WorkflowOperationAsyncResult.cs (1)
108Fx.Assert(!this.instanceIdGuid.Equals(Guid.Empty), "WorkflowOperationInvokerAsyncResut.instanceIdGuid != Guid.Empty");
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (1)
209if (Guid.Empty == id)
System\Workflow\Activities\ContractType.cs (2)
26private Guid guid = Guid.Empty; 117if (this.guid == Guid.Empty)
System\Workflow\Activities\ReceiveContext.cs (2)
20static string emptyGuid = Guid.Empty.ToString(); 21Guid contextId = Guid.Empty;
System\Workflow\Runtime\Hosting\ChannelManagerService.cs (2)
215if (workflowId == Guid.Empty) 282if (workflowId == Guid.Empty)
System.Xml (1)
System\Xml\XmlConvert.cs (1)
1326result = Guid.Empty;
WindowsBase (1)
Base\System\Windows\SplashScreen.cs (1)
417Guid vendor = Guid.Empty;
WsatUI (2)
MMCUI\ACLWrapper.cs (2)
95this.ObjectType = Guid.Empty; 313Guid objectType = Guid.Empty;