124 references to Format
mscorlib (3)
system\security\permissions\fileiopermission.cs (1)
1096
string.
Format
("path isn't normalized: {0}", fullPath));
system\threading\ManualResetEventSlim.cs (2)
173
throw new InvalidOperationException(String.
Format
(Environment.GetResourceString("ManualResetEventSlim_ctor_TooManyWaiters"), NumWaitersState_MaxValue));
230
String.
Format
(Environment.GetResourceString("ManualResetEventSlim_ctor_SpinCountOutOfRange"), SpinCountState_MaxValue));
PresentationCore (5)
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (1)
360
Fail(string.
Format
("No FontFamily element found in FontFamilyCollection that matches current OS or greater: {0}", OSVersionHelper.GetOsVersion().ToString()));
Core\CSharp\MS\Internal\Media\VisualTreeUtils.cs (2)
192
Debug.Fail(String.
Format
("Unhandled HitTestResult type '{0}'", result.GetType().Name));
299
Debug.Fail(String.
Format
(
Core\CSharp\System\Windows\Media\KnownColors.cs (1)
181
string aRGBString = String.
Format
("#{0,8:X8}", (uint)colorValue);
Shared\System\Windows\Interop\OSVersionHelper.cs (1)
278
throw new ArgumentException(string.
Format
("{0} is not a valid OS!", osVer.ToString()), "osVer");
PresentationFramework (20)
src\Framework\System\Windows\Documents\DocumentReference.cs (1)
106
DocumentsTrace.FixedDocumentSequence.IDF.Trace(string.
Format
("DocumentReference.GetDocument Loaded IDP {0}", idpReloaded.GetHashCode()));
src\Framework\System\Windows\Documents\DocumentSequence.cs (6)
133
DocumentsTrace.FixedDocumentSequence.Content.Trace(string.
Format
("Doc {0} Deferred", _references.Count));
256
DocumentsTrace.FixedFormat.IDF.Trace(string.
Format
("IDP.GetPage({0})", pageNumber));
372
DocumentsTrace.FixedFormat.IDF.Trace(string.
Format
("IDP.GetPageAsyncCancel([{0}])", userState));
746
DocumentsTrace.FixedDocumentSequence.Content.Trace(string.
Format
("Loaded DocumentReference {0}", _references.Count));
767
DocumentsTrace.FixedDocumentSequence.Content.Trace(string.
Format
("_OnCollectionChange: Add {0}", item.GetHashCode()));
782
DocumentsTrace.FixedDocumentSequence.Content.Trace(string.
Format
("_OnCollectionChange: Add with IDP {0}", paginator.GetHashCode()));
src\Framework\System\Windows\Documents\DocumentSequenceHighlightLayer.cs (1)
81
DocumentsTrace.FixedDocumentSequence.Highlights.Trace(string.
Format
("DSHL.RaiseHighlightChangedEvent ranges={0}", ranges.Count));
src\Framework\System\Windows\Documents\FixedDocument.cs (10)
168
DocumentsTrace.FixedFormat.FixedDocument.Trace(string.
Format
("Page {0} Deferred", _pages.Count));
340
DocumentsTrace.FixedFormat.IDF.Trace(string.
Format
("IDP.GetPage({0})", pageNumber));
447
DocumentsTrace.FixedFormat.IDF.Trace(string.
Format
("IDP.GetPageAsyncCancel([{0}])", userState));
483
DocumentsTrace.FixedFormat.IDF.Trace(string.
Format
("IDF.GetContentPositionForElement({0})", element));
682
DocumentsTrace.FixedFormat.FixedDocument.Trace(string.
Format
("SyncGetPageWithCheck {0} is invalid page", index));
691
DocumentsTrace.FixedFormat.FixedDocument.Trace(string.
Format
("SyncGetPage {0}", index));
760
DocumentsTrace.FixedFormat.FixedDocument.Trace(string.
Format
("GetPageSize {0}", pageNumber));
1052
DocumentsTrace.FixedFormat.FixedDocument.Trace(string.
Format
("Loaded Page {0}", _pages.Count));
1238
DocumentsTrace.FixedFormat.IDF.Trace(string.
Format
("IDP.GetPageAsyncDelegate {0}", Pages.IndexOf(pc)));
1257
DocumentsTrace.FixedFormat.IDF.Trace(string.
Format
("IDP.OnGetPageRootCompleted {0}", Pages.IndexOf((PageContent)sender)));
src\Framework\System\Windows\SystemResourceKey.cs (1)
1869
String.
Format
("Invalid SystemResourceKeyID (id={0})", (int)id));
src\Framework\System\Windows\Window.cs (1)
6242
Debug.Assert(false, String.
Format
("specifiedRestoreBounds can't be {0}", specifiedRestoreBounds));
System (11)
compmod\system\collections\specialized\notifycollectionchangedeventargs.cs (1)
315
Contract.Assert(false, String.
Format
("Unsupported action: {0}", action.ToString()));
net\System\Net\Internal.cs (9)
1429
GlobalLog.Print(" certContextArray = " + String.
Format
("0x{0:x}", certContextArray));
1430
GlobalLog.Print(" rootStore = " + String.
Format
("0x{0:x}", rootStore));
1432
GlobalLog.Print(" phMappers = " + String.
Format
("0x{0:x}", phMappers));
1434
GlobalLog.Print(" palgSupportedAlgs = " + String.
Format
("0x{0:x}", palgSupportedAlgs));
1435
GlobalLog.Print(" grbitEnabledProtocols = " + String.
Format
("0x{0:x}", grbitEnabledProtocols));
1438
GlobalLog.Print(" dwSessionLifespan = " + String.
Format
("0x{0:x}", dwSessionLifespan));
1439
GlobalLog.Print(" dwFlags = " + String.
Format
("0x{0:x}", dwFlags));
1440
GlobalLog.Print(" reserved = " + String.
Format
("0x{0:x}", reserved));
2012
GlobalLog.Enter("PolicyWrapper::VerifyChainPolicy", "chainContext="+ chainContext + ", options="+String.
Format
("0x{0:x}", cpp.dwFlags));
sys\system\io\ports\SerialStream.cs (1)
821
Contract.Assert(false, String.
Format
("Unexpected error code from EscapeCommFunction in SerialPort.Dispose(bool) Error code: 0x{0:x}", (uint)hr));
System.Activities (2)
System\Activities\Debugger\BinarySearchResult.cs (2)
68
return string.
Format
("Data is found at index {0}.", this.FoundIndex);
72
return string.
Format
("Data is not found, the next index is {0}.", this.NextIndex);
System.Data (23)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (4)
3026
Debug.Assert(ordinal >= 0, string.
Format
("Invalid ordinal: {0}", ordinal));
3029
Debug.Assert(fieldOffset >= 0, string.
Format
("Invalid field offset: {0}", fieldOffset));
3062
Debug.Assert(ordinal >= 0, string.
Format
("Invalid ordinal: {0}", ordinal));
3065
Debug.Assert(fieldOffset >= 0, string.
Format
("Invalid field offset: {0}", fieldOffset));
fx\src\data\System\Data\Common\DBConnectionString.cs (3)
281
Debug.Assert(false, string.
Format
("Unknown behavior for combined set: {0}", combinedSet._behavior));
298
Debug.Assert(false, string.
Format
("Unknown behavior for combined set: {0}", combinedSet._behavior));
302
Debug.Assert(false, string.
Format
("Unknown behavior for component set: {0}", componentSet._behavior));
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (4)
864
Debug.Assert(false, string.
Format
("Current column is marked as being a DataFeed, but no DataFeed compatible method was provided. Method: {0}", _currentRowMetadata[destRowIndex].Method));
889
Debug.Assert(false, string.
Format
("Current column is marked as being a SqlType, but no SqlType compatible method was provided. Method: {0}", _currentRowMetadata[destRowIndex].Method));
981
Debug.Assert(false, string.
Format
("Current column is marked as being a SqlType, but no SqlType compatible method was provided. Method: {0}", _currentRowMetadata[destRowIndex].Method));
1084
Debug.Assert(false, string.
Format
("Unknown value source: {0}", _rowSourceType));
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (1)
472
string keyName = String.
Format
(@"SOFTWARE\Microsoft\Cryptography\Defaults\Provider\{0}", providerName);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (5)
58
Debug.Assert(_peekedChar == -1 || ((_peekedChar >= char.MinValue) && (_peekedChar <= char.MaxValue)), string.
Format
("Bad peeked character: {0}", _peekedChar));
92
Debug.Assert(readChar == -1 || ((readChar >= char.MinValue) && (readChar <= char.MaxValue)), string.
Format
("Bad read character: {0}", readChar));
114
Debug.Assert((_peekedChar >= char.MinValue) && (_peekedChar <= char.MaxValue), string.
Format
("Bad peeked character: {0}", _peekedChar));
159
Debug.Assert((_peekedChar >= char.MinValue) && (_peekedChar <= char.MaxValue), string.
Format
("Bad peeked character: {0}", _peekedChar));
393
Debug.Assert((inBufferCount > 0) && (inBufferCount <= inBuffer.Length), string.
Format
("Bad inBufferCount: {0}", inBufferCount));
fx\src\data\System\Data\SqlClient\SqlSequentialTextReaderSmi.cs (3)
39
Debug.Assert(_peekedChar == -1 || ((_peekedChar >= char.MinValue) && (_peekedChar <= char.MaxValue)), string.
Format
("Bad peeked character: {0}", _peekedChar));
70
Debug.Assert(readChar == -1 || ((readChar >= char.MinValue) && (readChar <= char.MaxValue)), string.
Format
("Bad read character: {0}", readChar));
86
Debug.Assert((_peekedChar >= char.MinValue) && (_peekedChar <= char.MaxValue), string.
Format
("Bad peeked character: {0}", _peekedChar));
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
1824
String.
Format
("Unexpected SniContext on call to TryRun; SniContext={0}", stateObj.SniContext));
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (2)
835
Debug.Assert((remaining == -1 && _sessionHandle == null) || (0 <= remaining && remaining < 3), string.
Format
("_pendingCallbacks values is invalid after decrementing: {0}", remaining));
921
Debug.Assert(0 < remaining && remaining <= 3, string.
Format
("_pendingCallbacks values is invalid after incrementing: {0}", remaining));
System.Management (41)
Instrumentation\AssemblyNameUtility.cs (1)
23
sz += String.
Format
("{0:x2}", rg[i]);
Instrumentation\CodeSpit.cs (1)
111
usingCode.Line(String.
Format
("using {0};", type.Namespace));
Instrumentation\SchemaMapping.cs (34)
40
throw new ArgumentException(String.
Format
(RC.GetString("UNSUPPORTEDMEMBER_EXCEPT"), mi.Name), mi.Name, innerException);
174
codeToWMI.Line(String.
Format
("{0} instNET = ({0})obj;", type.FullName.Replace('+', '.'))); // bug#92918 - watch for nested classes
301
CodeWriter codeNotNull = codeToWMI.AddChild(String.
Format
("if(instNET.{0} != null)", field.Name));
303
codeElse.Line(String.
Format
("{0}.Value = null;", propFieldName));
306
codeNotNull.Line(String.
Format
("int len = instNET.{0}.Length;", field.Name));
312
CodeWriter codeFoundType = codeForLoop.AddChild(String.
Format
("if((instNET.{0}[i] != null) && mapTypeToConverter.Contains(instNET.{0}[i].GetType()))", field.Name));
313
codeFoundType.Line(String.
Format
("Type type = (Type)mapTypeToConverter[instNET.{0}[i].GetType()];", field.Name));
315
codeFoundType.Line(String.
Format
("embeddedConverters[i].ToWMI(instNET.{0}[i]);", field.Name));
318
codeForLoop.AddChild("else").Line(String.
Format
("embeddedObjects[i] = SafeAssign.GetManagementObject(instNET.{0}[i]);", field.Name));
320
codeNotNull.Line(String.
Format
("{0}.Value = embeddedObjects;", propFieldName));
324
CodeWriter codeFoundType = codeNotNull.AddChild(String.
Format
("if(mapTypeToConverter.Contains(instNET.{0}.GetType()))", field.Name));
325
codeFoundType.Line(String.
Format
("Type type = (Type)mapTypeToConverter[instNET.{0}.GetType()];", field.Name));
327
codeFoundType.Line(String.
Format
("converter.ToWMI(instNET.{0});", field.Name));
328
codeFoundType.Line(String.
Format
("{0}.Value = converter.GetInstance();", propFieldName));
341
codeNotNull = codeToWMI.AddChild(String.
Format
("if(instNET.{0} != null)", field.Name));
343
codeElse.Line(String.
Format
("{0}.Value = null;", propFieldName));
348
codeNotNull.Line(String.
Format
("int len = instNET.{0}.Length;", field.Name));
350
codeNotNull.Line(String.
Format
("{0}[] embeddedConverters = new {0}[len];", embeddedConverterName));
353
codeForLoop.Line(String.
Format
("embeddedConverters[i] = new {0}();", embeddedConverterName));
358
codeForLoop.Line(String.
Format
("embeddedConverters[i].ToWMI(instNET.{0}[i]);", field.Name));
362
CodeWriter codeArrayElementNotNull = codeForLoop.AddChild(String.
Format
("if(instNET.{0}[i] != null)", field.Name));
363
codeArrayElementNotNull.Line(String.
Format
("embeddedConverters[i].ToWMI(instNET.{0}[i]);", field.Name));
367
codeNotNull.Line(String.
Format
("{0}.Value = embeddedObjects;", propFieldName));
380
CodeWriter codeIf = codeGet.AddChild(String.
Format
("if(null == lazy_embeddedConverter_{0})", propFieldName));
382
codeGet.Line(String.
Format
("return lazy_embeddedConverter_{0};", propFieldName));
385
codeNotNull.Line(String.
Format
("{0}.Value = embeddedConverter_{0}.instance;", propFieldName));
417
codeToWMI.Line(String.
Format
("if(instNET.{0})", field.Name));
418
codeToWMI.Line(String.
Format
(" IWOA.WritePropertyValue_f28(28, instWbemObjectAccessIP, {0}, 2, ref SafeAssign.boolTrue);", handleFieldName));
420
codeToWMI.Line(String.
Format
(" IWOA.WritePropertyValue_f28(28, instWbemObjectAccessIP, {0}, 2, ref SafeAssign.boolFalse);", handleFieldName));
424
CodeWriter codeQuickString = codeToWMI.AddChild(String.
Format
("if(null != instNET.{0})", field.Name));
427
codeToWMI.AddChild("else").Line(String.
Format
("IWOA.Put_f5(5, instWbemObjectAccessIP, \"{0}\", 0, ref nullObj, 8);", propName));
451
codeToWMI.AddChild(String.
Format
("if(null == instNET.{0})", field.Name)).Line(String.
Format
("{0}.Value = null;", propFieldName));
495
throw new ArgumentException(String.
Format
(RC.GetString("MEMBERCONFLILCT_EXCEPT"), field.Name), field.Name);
Instrumentation\SchemaRegistration.cs (3)
249
String.
Format
("//* {0}\r\n", DecoupledProviderInstanceName),
250
String.
Format
("//* {0}\r\n", AssemblyUniqueIdentifier),
878
return String.
Format
("#pragma namespace(\"\\\\\\\\.\\\\{0}\")\r\n\r\n", namespaceName.Replace("\\", "\\\\"));
WmiGenerator.cs (2)
5006
throw new ArgumentOutOfRangeException(String.
Format
(GetString("UNABLE_TOCREATE_GEN_EXCEPT") , strProvider ));
5015
throw new ArgumentOutOfRangeException(String.
Format
(GetString("UNABLE_TOCREATE_GEN_EXCEPT") , strProvider));
System.ServiceModel (12)
System\ServiceModel\BasicHttpSecurity.cs (2)
25
Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(mode), string.
Format
("Invalid BasicHttpSecurityMode value: {0}.", mode.ToString()));
125
Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(basicHttpSecurityMode), string.
Format
("Invalid BasicHttpSecurityMode value: {0}.", basicHttpSecurityMode.ToString()));
System\ServiceModel\Channels\MsmqDiagnostics.cs (1)
247
Fx.Assert(String.
Format
("Unexpected messageId size: {0}", messageId.Buffer.Length));
System\ServiceModel\NetMsmqBinding.cs (1)
307
Fx.Assert(NetMsmqSecurityModeHelper.IsDefined(netMsmqSecurityMode), string.
Format
("Invalid NetMsmqSecurityMode value: {0}.", netMsmqSecurityMode.ToString()));
System\ServiceModel\NetMsmqSecurity.cs (1)
31
Fx.Assert(NetMsmqSecurityModeHelper.IsDefined(mode), string.
Format
("Invalid NetMsmqSecurityMode value: {0}.", mode.ToString()));
System\ServiceModel\NetTcpBinding.cs (1)
448
Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.
Format
("Invalid SecurityMode value: {0}.", securityMode.ToString()));
System\ServiceModel\NetTcpSecurity.cs (1)
26
Fx.Assert(SecurityModeHelper.IsDefined(mode), string.
Format
("Invalid SecurityMode value: {0}.", mode.ToString()));
System\ServiceModel\WSDualHttpSecurity.cs (1)
27
Fx.Assert(WSDualHttpSecurityModeHelper.IsDefined(mode), string.
Format
("Invalid WSDualHttpSecurityMode value: {0}", mode.ToString()));
System\ServiceModel\WSFederationHttpSecurity.cs (2)
24
Fx.Assert(WSFederationHttpSecurityModeHelper.IsDefined(mode), string.
Format
("Invalid WSFederationHttpSecurityMode value: {0}", mode.ToString()));
77
Fx.Assert(WSFederationHttpSecurityModeHelper.IsDefined(mode), string.
Format
("Invalid WSFederationHttpSecurityMode value: {0}", mode.ToString()));
System\ServiceModel\WSHttpSecurity.cs (2)
114
Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.
Format
("Invalid SecurityMode value: {0}.", mode.ToString()));
125
Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.
Format
("Invalid SecurityMode value: {0}.", securityMode.ToString()));
System.Web (6)
Management\WebEvents.cs (1)
923
return(fmt != null) ? String.
Format
(fmt, arg0) : null;
State\OutOfProcStateClientManager.cs (1)
332
" lockDate=" + string.
Format
("{0:x}", results.lockDate) +
UI\DataBinder.cs (3)
138
return String.
Format
(format, value);
197
return string.
Format
(format, value);
304
return string.
Format
(format, value);
UI\XPathBinder.cs (1)
84
return String.
Format
(format, value);
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
901
publicKeyString += String.
Format
("{0}", Marshal.ReadByte(publicKeyOrToken, pos).ToString("x2"));