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