Base:
method
ToString
System.ValueType.ToString()
301 references to ToString
ComSvcConfig (6)
ComplusEndpointConfigContainer.cs (4)
351partitionId = partitionGuid.ToString(); 385return iid.ToString().ToUpperInvariant(); 413return "net.pipe://localhost/" + (appId.ToString() + "/" + clsid.ToString());
EndpointConfigContainer.cs (1)
457newComContract.Namespace = EndpointConfig.TempURI + contractIID.ToString().ToUpperInvariant();
WasEndpointConfigContainer.cs (1)
236return iid.ToString().ToUpperInvariant();
mscorlib (17)
system\diagnostics\eventing\activitytracker.cs (3)
132etwLog.DebugFacilityMessage1("OnStartRet", activityId.ToString(), relatedActivityId.ToString()); 215etwLog.DebugFacilityMessage("OnStopRet", activityId.ToString());
system\diagnostics\eventing\eventsource.cs (1)
6051Append("\" guid=\"{").Append(providerGuid.ToString()).Append("}");
system\runtime\interopservices\registrationservices.cs (9)
378String strRecordId = "{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}"; 416String strClsId = "{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}"; 500String strClsId = "{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}"; 546String strRecordId = "{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}"; 608String strClsId = "{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}"; 800String strClsId = "{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}"; 874String strTlbId = "{" + Marshal.GetTypeLibGuidForAssembly(assembly).ToString().ToUpper(CultureInfo.InvariantCulture) + "}"; 900String strTlbId = "{" + Marshal.GetTypeLibGuidForAssembly(assembly).ToString().ToUpper(CultureInfo.InvariantCulture) + "}"; 1056objs[0] = "HKEY_CLASSES_ROOT\\CLSID\\{" + Marshal.GenerateGuidForType(type).ToString().ToUpper(CultureInfo.InvariantCulture) + "}";
system\runtime\interopservices\typelibconverter.cs (2)
185String strTlbId = "{" + g.ToString().ToUpper(CultureInfo.InvariantCulture) + "}"; 374Object[] aArgs = new Object[1] {Marshal.GetTypeLibGuid((ITypeLib)typeLib).ToString()};
system\runtime\remoting\identity.cs (1)
38private static String s_originalAppDomainGuid = Guid.NewGuid().ToString().Replace('-', '_');
system\sharedstatics.cs (1)
57_sharedStatics._Remoting_Identity_IDGuid = Guid.NewGuid().ToString().Replace('-', '_');
PresentationBuildTasks (1)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (1)
930return Guid.NewGuid().ToString();
PresentationCore (2)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
757ISFDebugTrace(" CUSTOM_GUID=" + guidList.FindGuid(isfTag).ToString());
Shared\System\Windows\Ink\KnownIds.cs (1)
320return id.ToString();
PresentationFramework (3)
src\Framework\MS\Internal\Annotations\AnnotationMap.cs (1)
90Debug.Assert(list != null, "there should be an attached annotation list for the annotationId: " + annotationId.ToString());
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
115throw new ThreadStateException(SR.Get(SRID.AxRequiresApartmentThread, clsid.ToString()));
src\Framework\System\Windows\Standard\MessageWindow.cs (1)
74_className = "MessageWindowClass+" + Guid.NewGuid().ToString();
SMSvcHost (1)
System\ServiceModel\Activation\SharingService.cs (1)
115string listenerEndPoint = controlServiceGuid.ToString();
System (8)
compmod\system\componentmodel\design\CommandID.cs (1)
94return menuGroup.ToString() + " : " + commandID.ToString(CultureInfo.CurrentCulture);
compmod\system\diagnostics\TextWriterTraceListener.cs (1)
228fileNameOnly = Guid.NewGuid().ToString() + fileNameOnly;
compmod\system\diagnostics\TraceListener.cs (1)
400TraceEvent(eventCache, source, TraceEventType.Transfer, id, message + ", relatedActivityId=" + relatedActivityId.ToString());
compmod\System\Runtime\InteropServices\StandardOleMarshalObject.cs (2)
50Debug.Assert(pStandardMarshal != null, "Failed to get marshaler for interface '" + riid.ToString() + "', CoGetStandardMarshal returned S_OK"); 59throw new InvalidOperationException(SR.GetString(SR.StandardOleMarshalObjectGetMarshalerFailed, riid.ToString()));
net\System\Net\HttpListener.cs (1)
1233if (Logging.On) Logging.Exit(Logging.HttpListener, this, "GetContext", "HttpListenerContext#" + ValidationHelper.HashString(httpContext) + " RequestTraceIdentifier#" + (httpContext != null ? httpContext.Request.RequestTraceIdentifier.ToString() : "<null>"));
net\System\Net\mail\Attachment.cs (1)
218cid = Guid.NewGuid().ToString();
net\System\Net\mail\SmtpClient.cs (1)
401filename = Guid.NewGuid().ToString() + ".eml";
System.Activities (17)
System\Activities\ActivityUtilities.cs (1)
1108return "'" + bookmarkScope.Id.ToString() + "'";
System\Activities\Runtime\BookmarkScopeManager.cs (1)
406TD.BookmarkScopeInitialized(temporaryId.ToString(CultureInfo.InvariantCulture), lookupScope.Id.ToString());
System\Activities\Tracking\EtwTrackingParticipant.cs (1)
186writer.WriteValue(value.ToString());
System\Activities\WorkflowApplication.cs (10)
1003TD.WorkflowInstanceAborted(this.Id.ToString(), reason); 2380TD.WorkflowApplicationUnloaded(this.Id.ToString()); 2387TD.WorkflowApplicationPersisted(this.Id.ToString()); 2710TD.WorkflowApplicationIdled(this.Id.ToString()); 5013TD.WorkflowApplicationPersistableIdle(application.Id.ToString(), action.ToString()); 5043TD.WorkflowApplicationPersistableIdle(application.Id.ToString(), PersistableIdleAction.None.ToString()); 5151TD.WorkflowApplicationCompleted(instance.Id.ToString()); 5157TD.WorkflowInstanceCanceled(instance.Id.ToString()); 5163TD.WorkflowApplicationTerminated(instance.Id.ToString(), completionException); 5284TD.WorkflowApplicationUnhandledException(instance.Id.ToString(), source.GetType().ToString(), source.DisplayName, action.ToString(), exception);
System\Activities\XamlIntegration\ActivityBuilderXamlWriter.cs (4)
447return desiredPrefix + Guid.NewGuid().ToString(); 482xClassName = string.Format(CultureInfo.CurrentCulture, "_{0}", Guid.NewGuid().ToString().Replace("-", string.Empty).Substring(0, 4)); 808propertyName = string.Format(CultureInfo.CurrentCulture, "_{0}", Guid.NewGuid().ToString().Replace("-", string.Empty)); 883this.propertyName = string.Format(CultureInfo.CurrentCulture, "_{0}", Guid.NewGuid().ToString().Replace("-", string.Empty));
System.Activities.Core.Presentation (3)
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (1)
61modelItemToGuid.Add(destinationState, Guid.NewGuid().ToString());
System\Activities\Core\Presentation\StateDesigner.xaml.cs (2)
49this.SetValue(AutomationProperties.ItemStatusProperty, this.guid.ToString()); 126status = status + "Guid=" + this.guid.ToString() + " ";
System.Activities.DurableInstancing (5)
System\Activities\DurableInstancing\CorrelationKey.cs (1)
51xmlWriter.WriteAttributeString("KeyId", this.KeyId.ToString());
System\Activities\DurableInstancing\SerializationUtilities.cs (4)
390xmlWriter.WriteElementString("DefinitionIdentityHash", Guid.Empty.ToString()); 391xmlWriter.WriteElementString("DefinitionIdentityAnyRevisionHash", Guid.Empty.ToString()); 398xmlWriter.WriteElementString("DefinitionIdentityHash", idHash.ToString()); 399xmlWriter.WriteElementString("DefinitionIdentityAnyRevisionHash", idAnyRevisionHash.ToString());
System.Activities.Presentation (6)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (1)
253return prefix + Guid.NewGuid().ToString();
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
219frameObject.IdRef = Guid.NewGuid().ToString();
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
46string postfix = Guid.NewGuid().ToString();
System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (3)
229prefix = string.Format(CultureInfo.InvariantCulture, "__{0}", Guid.NewGuid().ToString().Replace("-", "").Substring(0, 5)); 277Guid.NewGuid().ToString().Replace('-', '_'), name.Name); 278return new NamespaceDeclaration(ns, Guid.NewGuid().ToString());
System.AddIn (3)
System\Addin\Hosting\AddInProcess.cs (1)
229return RemotingHelper.GetAddInServer(Guid.ToString());
System\Addin\Hosting\RemotingHelper.cs (2)
15internal static readonly String s_emptyGuid = Guid.Empty.ToString(); 45props["portName"] = Guid.NewGuid().ToString();
System.Core (3)
System\Diagnostics\Eventing\EventProviderTraceListener.cs (2)
410dataString.Append(activityId.ToString()); 416dataString.Append(relatedActivityId.ToString());
System\Diagnostics\EventSchemaTraceListener.cs (1)
665path = fileNameWithoutExt + Guid.NewGuid().ToString() + fileExt;
System.Data (20)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (1)
253return prefix + Guid.NewGuid().ToString();
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
219frameObject.IdRef = Guid.NewGuid().ToString();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
46string postfix = Guid.NewGuid().ToString();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (3)
229prefix = string.Format(CultureInfo.InvariantCulture, "__{0}", Guid.NewGuid().ToString().Replace("-", "").Substring(0, 5)); 277Guid.NewGuid().ToString().Replace('-', '_'), name.Name); 278return new NamespaceDeclaration(ns, Guid.NewGuid().ToString());
fx\src\data\System\Data\Common\System.Data_BID.cs (1)
374NativeMethods.ScopeEnter (modID, UIntPtr.Zero, UIntPtr.Zero, out hScp, fmtPrintfW,a1, a2.ToString());
fx\src\data\System\Data\SqlClient\SqlConnection.cs (6)
1233Bid.Trace("<sc.SqlConnection.ReconnectAsync|INFO> Orginal ClientConnectionID %ls - reconnection cancelled\n", _originalConnectionId.ToString()); 1251Bid.Trace("<sc.SqlConnection.ReconnectIfNeeded|INFO> Reconnection suceeded. ClientConnectionID %ls -> %ls \n", _originalConnectionId.ToString(), ClientConnectionId.ToString()); 1255Bid.Trace("<sc.SqlConnection.ReconnectAsyncINFO> Orginal ClientConnectionID %ls - reconnection attempt failed error %ls\n", _originalConnectionId.ToString(), e.Message); 1257Bid.Trace("<sc.SqlConnection.ReconnectAsync|INFO> Orginal ClientConnectionID %ls - give up reconnection\n", _originalConnectionId.ToString()); 1308Bid.Trace("<sc.SqlConnection.ReconnectIfNeeded|INFO> Connection ClientConnectionID %ls is invalid, reconnecting\n", _originalConnectionId.ToString());
fx\src\data\System\Data\SqlClient\SqlDependency.cs (3)
226private readonly string _id = Guid.NewGuid().ToString() + ";" + _appDomainKey; 248private static readonly string _appDomainKey = Guid.NewGuid().ToString(); 1192builder.Append(Guid.NewGuid().ToString());
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (2)
100guid = Guid.NewGuid().ToString(); 444_dialogHandle = ((Guid) param.Value).ToString();
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
843Bid.Trace("<sc.TdsParser.SendPreLoginHandshake|INFO> ClientConnectionID %ls, ActivityID %ls\n", _connHandler._clientConnectionId.ToString(), actId.ToString());
fx\src\data\System\Data\SQLTypes\SQLGuid.cs (1)
153return g.ToString();
System.Data.Entity (1)
System\Data\Common\QueryCache\CompiledQueryCacheKey.cs (1)
58return _cacheIdentity.ToString();
System.Data.Entity.Design (2)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
118string filename = Path.Combine(tempFiles.TempDir, "EdmCodeGenFixup-" + Guid.NewGuid().ToString() + ".tmp");
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
82assemblyAttribute = AttributeEmitter.EmitSimpleAttribute("System.Data.Objects.DataClasses.EdmSchemaAttribute", System.Guid.NewGuid().ToString());
System.Data.Services (3)
System\Data\Services\DataService.cs (2)
1842string batchBoundary = XmlConstants.HttpMultipartBoundaryBatchResponse + '_' + Guid.NewGuid().ToString(); 2391changesetBoundary = XmlConstants.HttpMultipartBoundaryChangesetResponse + '_' + Guid.NewGuid().ToString();
System\Data\Services\Serializers\JsonWriter.cs (1)
240this.WriteCore(value.ToString(), /* quotes */ true);
System.Data.Services.Client (5)
System\Data\Services\Client\ClientConvert.cs (1)
325return ((Guid)propertyValue).ToString();
System\Data\Services\Client\DataServiceContext.cs (4)
4181this.batchBoundary = XmlConstants.HttpMultipartBoundaryBatch + "_" + Guid.NewGuid().ToString(); 4185this.batchBoundary = XmlConstants.HttpMultipartBoundaryBatchResponse + "_" + Guid.NewGuid().ToString(); 4860this.changesetBoundary = XmlConstants.HttpMultipartBoundaryChangesetResponse + "_" + Guid.NewGuid().ToString(); 5075this.changesetBoundary = XmlConstants.HttpMultipartBoundaryChangeSet + "_" + Guid.NewGuid().ToString();
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
277string filename = Path.Combine(tempFiles.TempDir, "EdmCodeGenFixup-" + Guid.NewGuid().ToString() + ".tmp");
System.IdentityModel (4)
System\IdentityModel\Metadata\MetadataSerializer.cs (2)
2154string entityReference = "_" + Guid.NewGuid().ToString(); 2241string entityReference = "_" + Guid.NewGuid().ToString();
System\IdentityModel\SecurityUniqueId.cs (1)
13static string commonPrefix = "uuid-" + Guid.NewGuid().ToString() + "-";
System\IdentityModel\Tokens\SamlAssertion.cs (1)
23string assertionId = SamlConstants.AssertionIdPrefix + Guid.NewGuid().ToString();
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\InfoCardProofToken.cs (1)
38m_id = Guid.NewGuid().ToString();
System.Management (2)
Instrumentation\AssemblyNameUtility.cs (1)
49return UniqueToAssemblyVersion(assembly) + "_Mvid_"+MetaDataInfo.GetMvid(assembly).ToString().ToLower(CultureInfo.InvariantCulture);
Instrumentation\Instrumentation.cs (1)
52processIdentity = Guid.NewGuid().ToString().ToLower(CultureInfo.InvariantCulture);
System.Messaging (2)
System\Messaging\Message.cs (1)
2353result.Append((new Guid(guidBytes)).ToString());
System\Messaging\MessageQueue.cs (1)
3335newFormatName.Append(machineId.ToString());
System.Net (6)
net\PeerToPeer\Collaboration\CollaborationHelperFunctions.cs (1)
64string guidString = guid.ToString();
net\PeerToPeer\Collaboration\Peer.cs (1)
1056applicationId.ToString(),
net\PeerToPeer\Collaboration\PeerApplication.cs (2)
274Logging.P2PTraceSource.TraceEvent(TraceEventType.Information, 0, "Registering event with App ID {0}", m_id.ToString()); 472return Id.ToString() + " " + Description;
net\PeerToPeer\Collaboration\PeerContact.cs (1)
1024Logging.P2PTraceSource.TraceEvent(TraceEventType.Information, 0, "Guid supplied is {0}.", applicationId.ToString());
net\PeerToPeer\Collaboration\PeerObject.cs (1)
413return Id.ToString();
System.Runtime.Serialization (7)
System\Runtime\Serialization\Configuration\TypeElement.cs (1)
120string key = Guid.NewGuid().ToString();
System\Runtime\Serialization\ExtensionDataReader.cs (1)
723this.value = guid.ToString();
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
640writer.WriteRaw(value.ToString());
System\Xml\XmlConverter.cs (1)
421static public string ToString(Guid value) { return value.ToString(); }
System\Xml\XmlDictionaryWriter.cs (1)
719WriteString(value.ToString());
System\Xml\XmlMtomWriter.cs (1)
878prefix = string.Concat(Guid.NewGuid().ToString(), "+id=");
System\Xml\XmlUTF8TextWriter.cs (1)
715WriteText(value.ToString());
System.ServiceModel (61)
System\ServiceModel\Activation\SharedMemory.cs (1)
145content = contents->isInitialized ? contents->pipeGuid.ToString() : null;
System\ServiceModel\Channels\CompositeDuplexBindingElement.cs (1)
83context.ListenUriRelativeAddress = Guid.NewGuid().ToString();
System\ServiceModel\Channels\MsmqDiagnostics.cs (2)
219record = new StringTraceRecord("MSMQMessageId", msmqId.ToString()); 225{ "MSMQMessageId", msmqId.ToString() },
System\ServiceModel\Channels\MsmqInputSessionChannel.cs (1)
321string id = "uuid://session-gram/" + Guid.NewGuid().ToString();
System\ServiceModel\Channels\MsmqSubqueueLockingQueue.cs (1)
64string lockGuid = Guid.NewGuid().ToString();
System\ServiceModel\Channels\NativeMsmqMessage.cs (1)
522result.Append((new Guid(guid)).ToString());
System\ServiceModel\Channels\PeerSecurityManager.cs (1)
104ssc = SelfSignedCertificate.Create("CN=" + Guid.NewGuid().ToString(), this.Password);
System\ServiceModel\Channels\PipeConnection.cs (3)
2165Uri tempUri = new Uri(pipeUri, Guid.NewGuid().ToString()); 2536string pipeName = BuildPipeName(pipeGuid.ToString()); 2660this.pipeNameGuidPart = contents->pipeGuid.ToString();
System\ServiceModel\Channels\PnrpPeerResolver.cs (1)
399pathBuilder.Append(PathSeparator + String.Format(CultureInfo.InvariantCulture, "{0}", guid.ToString()));
System\ServiceModel\Channels\SelfSignedCertificate.cs (1)
31Guid.NewGuid().ToString());
System\ServiceModel\Channels\SharedConnectionListener.cs (1)
340this.securityEventName = Guid.NewGuid().ToString();
System\ServiceModel\Channels\TransportChannelListener.cs (4)
136this.SetUri(context.ListenUriBaseAddress, relativeAddress + Guid.NewGuid().ToString()); 377exactGeneratedAddressPrefix = "Temporary_Listen_Addresses/" + Guid.NewGuid().ToString(); 378strongWildcardGeneratedAddressPrefix = "Temporary_Listen_Addresses/" + Guid.NewGuid().ToString(); 379weakWildcardGeneratedAddressPrefix = "Temporary_Listen_Addresses/" + Guid.NewGuid().ToString();
System\ServiceModel\Channels\UriGenerator.cs (1)
33prefix = string.Concat(scheme, ":", Guid.NewGuid().ToString(), delimiter, "id=");
System\ServiceModel\ComIntegration\ComIntegrationManifestGenerator.cs (2)
50WriteUTFChars(s, "name=\"" + manifests[i].ToString() + "\"" + Environment.NewLine, 16); 143String strClsId = "{" + Marshal.GenerateGuidForType(t).ToString().ToUpperInvariant() + "}";
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceSchemas.cs (11)
94return SR.GetString(SR.ComPlusServiceSchema, this.appid.ToString(), this.clsid.ToString()); 189return SR.GetString(SR.ComPlusServiceSchemaDllHost, this.appid.ToString()); 280return SR.GetString(SR.ComPlusTLBImportSchema, this.iid.ToString(), this.typeLibraryID.ToString()); 374this.appid.ToString(), 375this.clsid.ToString(), 376this.incomingTransactionID.ToString(), 528this.appid.ToString(), 529this.clsid.ToString(), 530this.iid.ToString(),
System\ServiceModel\ComIntegration\ComPlusInstanceContextInitializer.cs (4)
25private static string manifestFileName = Guid.NewGuid().ToString(); 55string manifestDirectory = tempPath + this.info.AppID.ToString(); 168string manifestDirectory = tempPath + this.info.AppID.ToString() + @"\"; 193String guidStr = g.ToString();
System\ServiceModel\ComIntegration\ComPlusInstanceProvider.cs (3)
108this.info.AppID.ToString(), 109this.info.Clsid.ToString(), 110incomingTransactionID.ToString(),
System\ServiceModel\ComIntegration\ComPlusServiceHost.cs (4)
60this.info.AppID.ToString(), 61this.info.Clsid.ToString(), 83this.info.AppID.ToString(), 84this.info.Clsid.ToString(),
System\ServiceModel\ComIntegration\ComPlusSynchronizationContext.cs (1)
86ServiceModelActivity.Start(activity, SR.GetString(SR.TransferringToComplus, guidLogicalThreadID.ToString()), ActivityType.TransferToComPlus);
System\ServiceModel\ComIntegration\ComPlusThreadInitializer.cs (1)
177iid.ToString(),
System\ServiceModel\ComIntegration\DllHostInitializer.cs (1)
178applicationId.ToString(),
System\ServiceModel\ComIntegration\EmitterCache.cs (2)
48assemblyName.Name = Guid.NewGuid().ToString(); 50DynamicModule = assemblyBuilder.DefineDynamicModule(Guid.NewGuid().ToString());
System\ServiceModel\ComIntegration\PersistStreamTypeWrapper.cs (1)
256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CLSIDOfTypeDoesNotMatch, typeof(T).GUID.ToString(), clsid.ToString("B"))));
System\ServiceModel\ComIntegration\TypeCacheManager.cs (6)
76keyName = String.Concat("software\\classes\\interface\\{", iid.ToString(), "}\\typelib"); 81keyName = String.Concat("interface\\{", iid.ToString(), "}\\typelib"); 220iid.ToString(), 221typeLibraryID.ToString(), 353string keyName = String.Concat("software\\classes\\clsid\\{", clsid.ToString(), "}\\InprocServer32"); 402using (RegistryHandle clsidKey = hkcr.OpenSubKey(String.Concat("CLSID\\{", clsid.ToString(), "}\\InprocServer32")))
System\ServiceModel\ComIntegration\TypeLibraryHelper.cs (1)
105String strGuid = guid.ToString();
System\ServiceModel\Configuration\PeerCustomResolverElement.cs (1)
109SetPropertyValueIfNotDefaultValue(ConfigurationStrings.BindingConfiguration, PeerStrings.PeerCustomResolver + Guid.NewGuid().ToString());
System\ServiceModel\Description\ServiceEndpoint.cs (1)
170id = Guid.NewGuid().ToString();
System\ServiceModel\Diagnostics\ActivityIdHeader.cs (1)
136writer.WriteAttributeString("CorrelationId", this.headerId.ToString());
System\ServiceModel\Diagnostics\ServiceModelActivity.cs (1)
378return this.Id.ToString();
System\ServiceModel\Security\SecurityUtils.cs (1)
2393static string commonPrefix = "uuid-" + Guid.NewGuid().ToString() + "-";
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
196activityName = workflowService.Name.LocalName + "_" + Guid.NewGuid().ToString().Replace("-", "_");
System.ServiceModel.Activities (6)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (2)
542outgoingContextMessageProperty.Context.Add(ContextMessageProperty.InstanceIdKey, Guid.NewGuid().ToString()); 547outgoingContextMessageProperty.Context[ContextMessageProperty.InstanceIdKey] = Guid.NewGuid().ToString();
System\ServiceModel\Activities\InternalSendMessage.cs (1)
1506contextValue = Guid.NewGuid().ToString();
System\ServiceModel\Activities\WorkflowControlEndpoint.cs (2)
29new EndpointAddress(new Uri(WorkflowControlEndpoint.DefaultBaseUri, new Uri(Guid.NewGuid().ToString(), UriKind.Relative)))) 118Guid.NewGuid().ToString()));
System\ServiceModel\Activities\WorkflowOperationContext.cs (1)
682TD.BufferOutOfOrderMessageNoBookmark(thisPtr.eventTraceActivity, thisPtr.workflowInstance.Id.ToString(), thisPtr.bookmark.Name);
System.ServiceModel.Channels (2)
System\ServiceModel\Channels\UdpChannelListener.cs (2)
658this.listenUri = UdpUtility.AppendRelativePath(listenUriBaseAddress, Guid.NewGuid().ToString()); 668uriBuilder.Path = Guid.NewGuid().ToString();
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\ScopeCompiler.cs (1)
266return "uuidmatch::" + guid.ToString();
System.ServiceModel.Internals (1)
System\Runtime\NameGenerator.cs (1)
20this.prefix = string.Concat("_", Guid.NewGuid().ToString().Replace('-', '_'), "_");
System.Transactions (14)
System\Transactions\InternalTransaction.cs (2)
234string temp = Guid.NewGuid().ToString() + ":"; 297SR.GetString(SR.PromoterTypeUnrecognized), this.promoterType.ToString()),
System\Transactions\Oletx\OletxEnlistment.cs (1)
150this.transactionGuidString = this.transactionGuid.ToString();
System\Transactions\Oletx\OletxResourceManager.cs (2)
1028this.transactionGuidString = oletxTransaction.realOletxTransaction.TxGuid.ToString(); 1032this.transactionGuidString = Guid.Empty.ToString();
System\Transactions\Oletx\OleTxTransaction.cs (2)
459TransactionTraceIdentifier temp = new TransactionTraceIdentifier( this.realOletxTransaction.Identifier.ToString(), 0 ); 1419TransactionTraceIdentifier temp = new TransactionTraceIdentifier( this.txGuid.ToString(), 0 );
System\Transactions\Trace\TraceRecords.cs (3)
82writer.WriteElementString("ResourceManagerId", enId.ResourceManagerIdentifier.ToString()); 882xml.WriteElementString("ResourceManagerId", rmId.ToString()); 918xml.WriteElementString("ResourceManagerId", rmId.ToString());
System\Transactions\Transaction.cs (1)
1478private static string CurrentTransactionProperty = "TxCurrent_" + Guid.NewGuid().ToString();
System\Transactions\TransactionState.cs (3)
4290SR.GetString(SR.PromoterTypeUnrecognized), tx.promoterType.ToString()), 4303SR.GetString(SR.PromoterTypeUnrecognized), tx.promoterType.ToString()), 4408SR.GetString(SR.PromoterTypeUnrecognized), tx.promoterType.ToString()),
System.Web (5)
Compilation\BaseTemplateCodeDomTreeGenerator.cs (1)
680call.Parameters.Add(new CodePrimitiveExpression(Guid.NewGuid().ToString()));
Management\WebEvents.cs (1)
324fields.Add(new WebEventFieldData("EventID", EventID.ToString(), WebEventFieldType.String));
Util\FactoryGenerator.cs (1)
108return Guid.NewGuid().ToString().Replace('-', '_');
Util\FastPropertyAccessor.cs (1)
59return Guid.NewGuid().ToString().Replace('-', '_');
XmlSiteMapProvider.cs (1)
792key = Guid.NewGuid().ToString();
System.Web.DataVisualization (2)
WebForm\ChartWebControl.cs (2)
470_currentChartImageLocation = _currentChartImageLocation.Replace("#UID", Guid.NewGuid().ToString()); 597htmlImage.ImageUrl = chartImageSrc + (addGuidParameter ? "?" + Guid.NewGuid().ToString() : "");
System.Web.Extensions (6)
Compilation\WCFModel\DataSvcMapFile.cs (1)
116_id = Guid.NewGuid().ToString();
Compilation\WCFModel\MetadataFile.cs (3)
71m_ID = Guid.NewGuid().ToString(); 86m_ID = Guid.NewGuid().ToString(); 108m_ID = Guid.NewGuid().ToString();
Compilation\WCFModel\SvcMapFile.cs (1)
116_id = Guid.NewGuid().ToString();
Script\Serialization\JavaScriptSerializer.cs (1)
208sb.Append("\"").Append(guid.ToString()).Append("\"");
System.Web.Mobile (4)
UI\MobileControls\Adapters\MultiPartWriter.cs (1)
53return Guid.NewGuid().ToString() + filetype;
UI\MobileControls\Design\Util\TemporaryBitmapFile.cs (1)
36_path = Path.GetTempPath() + Guid.NewGuid().ToString() + ".bmp";
UI\MobileControls\FactoryGenerator.cs (1)
116return Guid.NewGuid().ToString().Replace('-', '_');
UI\MobileControls\MobileControlsSectionHandler.cs (1)
124deviceName = Guid.NewGuid().ToString();
System.Windows.Forms (12)
winforms\Managed\System\WinForms\AxHost.cs (2)
2559Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose, "Creating object without license: " + clsid.ToString()); 2568Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose, "Creating object with license: " + clsid.ToString());
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
42strGuidBldr = Guid.Empty.ToString();
winforms\Managed\System\WinForms\Control.cs (5)
15604Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "AxSource:GetUserClassID. ClassID: " + pClsid.ToString()); 15738Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "AxSource:IPersist.GetClassID. ClassID: " + pClassID.ToString()); 15755Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "AxSource:IPersistPropertyBag.GetClassID. ClassID: " + pClassID.ToString()); 15786Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "AxSource:IPersistStorage.GetClassID. ClassID: " + pClassID.ToString()); 15851Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "AxSource:IPersistStreamInit.GetClassID. ClassID: " + pClassID.ToString());
winforms\Managed\System\WinForms\RichTextBox.cs (4)
3816Debug.WriteLineIf(RichTextDbg.TraceVerbose, "IRichEditOleCallback::QueryInsertObject(" + lpclsid.ToString() + ")"); 3832Debug.WriteLineIf(RichTextDbg.TraceVerbose, "real clsid:" + realClsid.ToString() + " (hr=" + hr.ToString("X", CultureInfo.InvariantCulture) + ")"); 3844switch (realClsid.ToString().ToUpper(CultureInfo.InvariantCulture)) 3852Debug.WriteLineIf(RichTextDbg.TraceVerbose, " denying '" + lpclsid.ToString() + "' from being inserted due to security restrictions");
System.Workflow.Activities (1)
Rules\Tracer.cs (1)
35tracePrefix = string.Format(CultureInfo.CurrentCulture, traceRuleIdentifier, name, activityExecutionContext.ContextGuid.ToString());
System.Workflow.ComponentModel (1)
AuthoringOM\ScheduleChanges.cs (1)
349throw new InvalidOperationException(SR.GetString(CultureInfo.CurrentCulture, SR.Error_DynamicUpdateEvaluation, new object[] { workflowCoreRuntime.InstanceID.ToString() }));
System.Workflow.Runtime (36)
DebugEngine\DebugController.cs (3)
343channelProperties["portName"] = this.programId.ToString(); 350ObjRef o = RemotingServices.Marshal(this, this.programId.ToString()); 353uri = this.channel.GetUrlsForUri(this.programId.ToString())[0];
Hosting\SqlWorkflowPersistenceService.cs (19)
202WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({0}): inserting instance: {1}, unlocking: {2} database: {3}", ownerId.ToString(), item.InstanceId.ToString(), item.Unlocked.ToString(), connection.Database); 239WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({0}): unlocking instance: {1}, database: {2}", ownerId.ToString(), instanceId.ToString(), connection.Database); 442WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({0}): retreiving instance: {1}, database: {2}", ownerId.ToString(), instanceStateId.ToString(), connection.Database); 582WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({0}): owership violation with {1} on instance {2}", myId.ToString(), currentOwnerId.ToString(), instId); 820WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({1}): Starting, LoadInternalSeconds={0}", loadingInterval.TotalSeconds, _serviceInstanceId.ToString()); 866WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({0}): Stopping", _serviceInstanceId.ToString()); 948WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({1}): Loading instance with expired timers {0}", id, _serviceInstanceId.ToString()); 1007WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({4}):Committing instance {0}, Blocked={1}, Unlocked={2}, NextTimer={3}", contextGuid.ToString(), item.Blocked, item.Unlocked, item.NextTimer.Value.ToLocalTime(), _serviceInstanceId.ToString()); 1018WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({0}):Unlocking instance {1}", _serviceInstanceId.ToString(), item.InstanceId.ToString()); 1025WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({0}):Loading instance {1}", _serviceInstanceId.ToString(), id.ToString()); 1135WorkflowTrace.Runtime.TraceEvent(TraceEventType.Error, 0, "SqlWorkflowPersistenceService({1})Exception thrown while persisting instance: {0}", se.Message, _serviceInstanceId.ToString()); 1151WorkflowTrace.Runtime.TraceEvent(TraceEventType.Error, 0, "SqlWorkflowPersistenceService({1}): Exception thrown while persisting instance: {0}", e.Message, _serviceInstanceId.ToString());
Lock.cs (3)
27return new InstanceLock(id, "Workflow Executor Lock: " + id.ToString(), 50, LockPriorityOperator.GreaterThanOrReentrant); 32return new InstanceLock(id, "Workflow Scheduler Lock: " + id.ToString(), 40, LockPriorityOperator.GreaterThan); 37return new InstanceLock(id, "Workflow Message Delivery Lock: " + id.ToString(), 35, LockPriorityOperator.GreaterThanOrReentrant);
System\Activities\Statements\InteropExecutor.cs (2)
1040GetTimerExtension().RegisterTimer(timerDuration, new Bookmark(timerId.ToString())); 1050GetTimerExtension().CancelTimer(new Bookmark(timerId.ToString()));
Tracking\SqlTrackingService.cs (7)
1249command.Parameters.Add(DbResourceAllocator.NewDbParameter("@TypeFullName", (xamlInst ? _parameters.InstanceId.ToString() : _parameters.WorkflowType.FullName))); 1250command.Parameters.Add(DbResourceAllocator.NewDbParameter("@AssemblyFullName", (xamlInst ? _parameters.InstanceId.ToString() : _parameters.WorkflowType.Assembly.FullName))); 1294command.Parameters.Add(DbResourceAllocator.NewDbParameter("@TypeFullName", (null == workflowType ? workflowInstanceId.ToString() : workflowType.FullName))); 1295command.Parameters.Add(DbResourceAllocator.NewDbParameter("@AssemblyFullName", (null == workflowType ? workflowInstanceId.ToString() : workflowType.Assembly.FullName))); 2212return hashed.ToString().Replace('-', '_') + "_" + context.ToString().Replace('-', '_') + "_" + parentContext.ToString().Replace('-', '_');
WorkflowExecutor.cs (1)
517workflowIdString = this.InstanceId.ToString();
WorkflowRuntime.cs (1)
586WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "Creating instance " + instanceId.ToString());
System.WorkflowServices (10)
System\ServiceModel\Activities\WorkflowClientDeliverMessageWrapper.cs (1)
55context["instanceId"] = eventArgs.InstanceId.ToString();
System\ServiceModel\Dispatcher\WorkflowOperationAsyncResult.cs (1)
109this.instanceIdString = this.instanceIdGuid.ToString();
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (2)
599string traceText = SR2.GetString(SR2.SqlPrsistenceProviderOperationAndInstanceId, handler.OperationName, id.ToString()); 655string traceText = SR2.GetString(SR2.SqlPrsistenceProviderOperationAndInstanceId, handler.OperationName, id.ToString());
System\Workflow\Activities\ReceiveActivity.cs (3)
1317string keyValue = WorkflowEnvironment.WorkflowInstanceId.ToString() + ":" + 1325string keyValue = WorkflowEnvironment.WorkflowInstanceId.ToString() + ":" 1335requestContextsCache.Remove(WorkflowEnvironment.WorkflowInstanceId.ToString() + ":" +
System\Workflow\Activities\ReceiveContext.cs (3)
20static string emptyGuid = Guid.Empty.ToString(); 31this.workflowId = workflowId.ToString(); 80new KeyValuePair<string, string>(WellKnownContextProperties.ConversationId, Guid.NewGuid().ToString()));
System.Xml (4)
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
3518return v.ToString(); 3644return v.ToString();
System\Xml\Serialization\Compilation.cs (1)
281list.Add(modules[i].ModuleVersionId.ToString());
System\Xml\XmlConvert.cs (1)
810return value.ToString();
WindowsBase (5)
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (4)
558fmtid.ToString(), 853SR.Get(SRID.UnknownDocumentProperty, fmtid.ToString(), propId), 872SR.Get(SRID.UnknownDocumentProperty, fmtid.ToString(), propId), 880SR.Get(SRID.UnknownDocumentProperty, fmtid.ToString(), propId),
Shared\MS\Win32\HwndWrapper.cs (1)
126string randomName = Guid.NewGuid().ToString();