128 references to ToString
ComSvcConfig (93)
ComAdminWrapper.cs (13)
101if (!FindApplication(appid.ToString("B"), out appObj, out appColl)) 103throw Tool.CreateException(SR.GetString(SR.ApplicationNotFound, appid.ToString("B")), null); 210return GetPartitionIdForApplication(catalog, appId.ToString("B"), true); 331using (RegistryHandle clsidKey = regKey.CreateSubKey(@"clsid\" + clsid.ToString("B"))) 351string application = appid.ToString("B"); 369string application = appid.ToString("B"); 379string clsid = clsidVal.ToString("B"); 393ToolConsole.WriteWarning(SR.GetString(SR.CannotSetComponentDescription, clsid, appid.ToString("B"))); 395ToolConsole.WriteWarning(SR.GetString(SR.CannotSetComponentInitializerProperty, ListenerWSUName, appid.ToString("B"))); 397ToolConsole.WriteWarning(SR.GetString(SR.CannotDisableAccessChecksOnInitializer, ListenerWSUName, appid.ToString("B"))); 526string application = appid.ToString("B"); 802if ((classInfo.Clsid.ToString("B").ToLowerInvariant() == classNameOrGuid) 879if ((interfaceInfo.Iid.ToString("B").ToLowerInvariant() == interfaceNameOrGuid.ToLowerInvariant())
ComplusEndpointConfigContainer.cs (14)
292ComAdminWrapper.SetAppDir(this.appInfo.ID.ToString("B"), this.appDir); 336sw.WriteLine("<assembly manifestVersion=\"1.0\" xmlns=\"urn:schemas-microsoft-com:asm.v1\"><assemblyIdentity name=\"" + this.appInfo.ID.ToString("B") + "\" version=\"1.0.0.0\" type=\"win32\"/></assembly>"); 362ComAdminAppInfo adminAppInfo = ComAdminWrapper.GetAppInfo(appId.ToString("B")); 365throw Tool.CreateException(SR.GetString(SR.CannotFindAppInfo, appId.ToString("B")), null); 368ComAdminClassInfo adminClassInfo = adminAppInfo.FindClass(clsid.ToString("B")); 371throw Tool.CreateException(SR.GetString(SR.CannotFindClassInfo, clsid.ToString("B")), null); 374ComAdminInterfaceInfo adminInterfaceInfo = adminClassInfo.FindInterface(iid.ToString("B")); 377throw Tool.CreateException(SR.GetString(SR.CannotFindInterfaceInfo, iid.ToString("B")), null); 396ComAdminAppInfo adminAppInfo = ComAdminWrapper.GetAppInfo(appId.ToString("B")); 399throw Tool.CreateException(SR.GetString(SR.CannotFindAppInfo, appId.ToString("B")), null); 402ComAdminClassInfo adminClassInfo = adminAppInfo.FindClass(clsid.ToString("B")); 405throw Tool.CreateException(SR.GetString(SR.CannotFindClassInfo, clsid.ToString("B")), null); 424return programFiles + "\\ComPlus Applications\\" + this.appInfo.ID.ToString("B") + "\\"; 433ComplusEndpointConfigContainer container = ComplusEndpointConfigContainer.Get(id.ToString("B"));
ComplusTypeValidator.cs (22)
86ToolConsole.WriteError(SR.GetString(SR.IsInternalInterfaceAndCannotBeExposedOverWebService, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name), ""); 88ToolConsole.WriteWarning(SR.GetString(SR.IsInternalInterfaceAndCannotBeExposedOverWebService, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name)); 106string exceptionMessage = SR.GetString(SR.TypeResolutionForInterfaceFailed, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, e.InnerException.Message); 123ToolConsole.WriteError(SR.GetString(SR.InterfaceHasNoMethods, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name), ""); 125ToolConsole.WriteNonVerboseWarning(SR.GetString(SR.InterfaceHasNoMethods, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name)); 141ToolConsole.WriteError(SR.GetString(SR.ParameterOfMethodInInterfaceHasANonCompliantType, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, method.Name, parameter.Name, typeMismatchDetails), ""); 143ToolConsole.WriteNonVerboseWarning(SR.GetString(SR.ParameterOfMethodInInterfaceHasANonCompliantType, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, method.Name, parameter.Name, typeMismatchDetails)); 151ToolConsole.WriteError(SR.GetString(SR.InvalidWebServiceReturnValue, method.ReturnType.Name, method.Name, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, typeMismatchDetails), ""); 153ToolConsole.WriteNonVerboseWarning(SR.GetString(SR.InvalidWebServiceReturnValue, method.ReturnType.Name, method.Name, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, typeMismatchDetails)); 183ToolConsole.WriteWarning(SR.GetString(SR.TypeResolutionForInterfaceFailed, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, e.InnerException.Message)); 212ToolConsole.WriteError(SR.GetString(SR.IsInternalInterfaceAndCannotBeExposedOverWebService, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name), ""); 214ToolConsole.WriteWarning(SR.GetString(SR.IsInternalInterfaceAndCannotBeExposedOverWebService, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name)); 233ToolConsole.WriteError(SR.GetString(SR.TypeResolutionForInterfaceFailed, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, e.InnerException.Message), ""); 235ToolConsole.WriteWarning(SR.GetString(SR.TypeResolutionForInterfaceFailed, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, e.InnerException.Message)); 243ToolConsole.WriteError(SR.GetString(SR.InterfaceHasNoMethods, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name), ""); 245ToolConsole.WriteWarning(SR.GetString(SR.InterfaceHasNoMethods, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name)); 267ToolConsole.WriteError(SR.GetString(SR.ParameterOfMethodInInterfaceHasANonCompliantType, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, method.Name, parameter.Name, typeMismatchDetails), ""); 269ToolConsole.WriteWarning(SR.GetString(SR.ParameterOfMethodInInterfaceHasANonCompliantType, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, method.Name, parameter.Name, typeMismatchDetails)); 277ToolConsole.WriteError(SR.GetString(SR.InvalidWebServiceReturnValue, method.ReturnType.Name, method.Name, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, typeMismatchDetails), ""); 279ToolConsole.WriteWarning(SR.GetString(SR.InvalidWebServiceReturnValue, method.ReturnType.Name, method.Name, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, typeMismatchDetails)); 287throw Tool.CreateException(SR.GetString(SR.MethodNotFoundOnInterface, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, methodName), null); 304iid.ToString("D").ToLowerInvariant().EndsWith("c000-000000000046", StringComparison.Ordinal)) //other ole/com standard interfaces
EndpointConfigContainer.cs (13)
68return iid.ToString("B").ToUpperInvariant(); 127return Appid.ToString("B").ToUpperInvariant() + "," + Clsid.ToString("B").ToUpperInvariant(); 136ComAdminAppInfo appInfo = ComAdminWrapper.GetAppInfo(appid.ToString("B")); 148ComAdminAppInfo appInfo = ComAdminWrapper.GetAppInfo(appid.ToString("B")); 152ComAdminClassInfo classInfo = appInfo.FindClass(clsid.ToString("B")); 166ComAdminAppInfo appInfo = ComAdminWrapper.GetAppInfo(appid.ToString("B")); 170ComAdminClassInfo classInfo = appInfo.FindClass(clsid.ToString("B")); 174ComAdminInterfaceInfo interfaceInfo = classInfo.FindInterface(iid.ToString("B")); 298methodsAdded = AddComContractToConfig(config, endpointConfig.InterfaceName, endpointConfig.Iid.ToString("B"), endpointConfig.Methods); 455ComContractElement newComContract = new ComContractElement(contractIID.ToString("B").ToUpperInvariant()); 677bool removeContract = RemoveComContractMethods(config, endpointConfig.Iid.ToString("B"), endpointConfig.Methods); 679RemoveAllServicesForContract(config, endpointConfig.Iid.ToString("B"));
Options.cs (1)
353itf = typeof(IMetadataExchange).GUID.ToString("B");
SvcFileManager.cs (6)
167ComAdminAppInfo adminAppInfo = ComAdminWrapper.GetAppInfo(appid.ToString("B")); 170throw Tool.CreateException(SR.GetString(SR.CannotFindAppInfo, appid.ToString("B")), null); 173ComAdminClassInfo adminClassInfo = adminAppInfo.FindClass(clsid.ToString("B")); 176throw Tool.CreateException(SR.GetString(SR.CannotFindClassInfo, clsid.ToString("B")), null); 195string comPlusString = clsid.ToString("B") + "," + appid.ToString("B");
Tool.cs (15)
197ComAdminClassInfo componentInfo = appInfo.FindClass(component.Component.ToString("B")); 420application = appid.ToString("B"); 486ComAdminAppInfo appInfo = ComAdminWrapper.GetAppInfo(enumerateApps.Current.Key.ToString("B")); 489ToolConsole.WriteQueryLine(SR.GetString(SR.EnumeratingComponentsForApplication, options.ShowGuids ? appInfo.ID.ToString("B") : appInfo.Name)); 511ComAdminClassInfo classInfo = appInfo.FindClass(enumerateComponents.Current.Key.ToString("B")); 514ToolConsole.WriteQueryLine(" " + SR.GetString(SR.EnumeratingInterfacesForComponent, options.ShowGuids ? classInfo.Clsid.ToString("B") : classInfo.Name)); 518ComAdminInterfaceInfo interfaceInfo = classInfo.FindInterface(enumerateInterfaces.Current.Key.ToString("B")); 533ToolConsole.WriteQueryLine(" " + SR.GetString(SR.EnumeratingEndpointsForInterfaces, options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name)); 554string application = sourceAppId.ToString("B"); 674ToolConsole.WriteWarning(SR.GetString(SR.NoneOfTheSpecifiedInterfacesForComponentWereFoundSkipping, Tool.Options.ShowGuids ? classInfo.Clsid.ToString("B") : classInfo.Name)); 713ToolConsole.WriteWarning(SR.GetString(SR.CannotFindComponentInApplicationSkipping, inComp.Component, Tool.Options.ShowGuids ? appInfo.ID.ToString("B") : appInfo.Name)); 752if (itfName == typeof(IMetadataExchange).GUID.ToString("B")) 813ToolConsole.WriteWarning(SR.GetString(SR.CannotFindComponentInApplicationSkipping, inComp.Component, Tool.Options.ShowGuids ? appInfo.ID.ToString("B") : appInfo.Name)); 845if (itfName == typeof(IMetadataExchange).GUID.ToString("B")) 1150ToolConsole.WriteWarning(SR.GetString(SR.CannotExposePrivateComponentsSkipping, Tool.Options.ShowGuids ? classInfo.Clsid.ToString("B") : classInfo.Name));
WasEndpointConfigContainer.cs (9)
213ComAdminAppInfo adminAppInfo = ComAdminWrapper.GetAppInfo(appId.ToString("B")); 216throw Tool.CreateException(SR.GetString(SR.CannotFindAppInfo, appId.ToString("B")), null); 219ComAdminClassInfo adminClassInfo = adminAppInfo.FindClass(clsid.ToString("B")); 222throw Tool.CreateException(SR.GetString(SR.CannotFindClassInfo, clsid.ToString("B")), null); 225ComAdminInterfaceInfo adminInterfaceInfo = adminClassInfo.FindInterface(iid.ToString("B")); 228throw Tool.CreateException(SR.GetString(SR.CannotFindInterfaceInfo, iid.ToString("B")), null); 300ToolConsole.WriteWarning(SR.GetString(SR.EndpointNotFoundInSvcFile, endpoint.Appid.ToString("B"), endpoint.Clsid.ToString("B"), endpoint.Iid.ToString("B"), endpoint.BindingName, endpoint.Address));
PresentationCore (1)
Core\CSharp\MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
341string wellFormedGuidString = guid.ToString("N");
PresentationFramework (1)
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
720Debug.Assert(clsid.ToString("D") == CLSID.WebBrowser);
System (3)
compmod\system\diagnostics\XmlWriterTraceListener.cs (3)
170InternalWrite(relatedActivityId.ToString("B")); 214InternalWrite(eventCache.ActivityId.ToString("B")); 216InternalWrite(Guid.Empty.ToString("B"));
System.Core (2)
System\Diagnostics\EventSchemaTraceListener.cs (2)
258BuildHeader(writer, source, TraceEventType.Transfer, id, eventCache, relatedActivityId.ToString("B"), false, this.TraceOutputOptions); 316_InternalBuildRaw(writer, Trace.CorrelationManager.ActivityId.ToString("B"));
System.Data (1)
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (1)
838string uniqueId = Guid.NewGuid().ToString("N");
System.ServiceModel (23)
System\ServiceModel\ComIntegration\ComPlusThreadInitializer.cs (7)
172incomingTransactionID.ToString("B").ToUpperInvariant(), 173currentTransactionID.ToString("B").ToUpperInvariant(), 175this.info.AppID.ToString("B").ToUpperInvariant(), 176this.info.Clsid.ToString("B").ToUpperInvariant(), 235this.info.AppID.ToString("B").ToUpperInvariant(), 236this.info.Clsid.ToString("B").ToUpperInvariant(), 237iid.ToString("B").ToUpperInvariant(),
System\ServiceModel\ComIntegration\ComPlusTypeValidator.cs (1)
30iid.ToString("D").EndsWith("C000-000000000046", StringComparison.OrdinalIgnoreCase)) //other ole/com standard interfaces
System\ServiceModel\ComIntegration\DllHostInitializer.cs (5)
80applicationId.ToString("B").ToUpperInvariant()))); 88applicationId.ToString("B").ToUpperInvariant()))); 100applicationId.ToString("B").ToUpperInvariant()))); 160(SR.CannotFindClsidInApplication, clsidToCompare.ToString("B").ToUpperInvariant(), applicationId.ToString("B").ToUpperInvariant())));
System\ServiceModel\ComIntegration\PersistStreamTypeWrapper.cs (5)
135throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CLSIDDoesNotSupportIPersistStream, clsid.ToString("B")))); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CLSIDDoesNotSupportIPersistStream, typeof(T).GUID.ToString("B")))); 248throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CLSIDDoesNotSupportIPersistStream, typeof(T).GUID.ToString("B")))); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CLSIDOfTypeDoesNotMatch, typeof(T).GUID.ToString(), clsid.ToString("B")))); 315throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.NotAllowedPersistableCLSID, streamWrapper.clsid.ToString("B"))));
System\ServiceModel\ComIntegration\ServiceInfo.cs (1)
223clsid.ToString("B").ToUpperInvariant(),
System\ServiceModel\ComIntegration\WebHostedComPlusServiceHost.cs (3)
50string clsidString = clsid.ToString("B").ToUpperInvariant(); 61appId.ToString("B").ToUpperInvariant()))); 85appId.ToString("B").ToUpperInvariant())));
System\ServiceModel\Transactions\WsatExtendedInformation.cs (1)
48return UuidScheme + transactionId.ToString("D");
System.Web.Extensions (2)
ClientServices\Providers\ClientData.cs (1)
303string name = Guid.NewGuid().ToString("N");
ClientServices\Providers\SqlHelper.cs (1)
102string name = Guid.NewGuid().ToString("N");
WindowsBase (2)
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (1)
690return String.Concat("R", Guid.NewGuid().ToString("N").Substring(0, _timestampLength));
Base\MS\Internal\Security\RightsManagement\IssuanceLicense.cs (1)
198contentId.ToString("B"),