124 references to Format
mscorlib (3)
system\security\permissions\fileiopermission.cs (1)
1096string.Format("path isn't normalized: {0}", fullPath));
system\threading\ManualResetEventSlim.cs (2)
173throw new InvalidOperationException(String.Format(Environment.GetResourceString("ManualResetEventSlim_ctor_TooManyWaiters"), NumWaitersState_MaxValue)); 230String.Format(Environment.GetResourceString("ManualResetEventSlim_ctor_SpinCountOutOfRange"), SpinCountState_MaxValue));
PresentationCore (5)
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (1)
360Fail(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)
192Debug.Fail(String.Format("Unhandled HitTestResult type '{0}'", result.GetType().Name)); 299Debug.Fail(String.Format(
Core\CSharp\System\Windows\Media\KnownColors.cs (1)
181string aRGBString = String.Format("#{0,8:X8}", (uint)colorValue);
Shared\System\Windows\Interop\OSVersionHelper.cs (1)
278throw new ArgumentException(string.Format("{0} is not a valid OS!", osVer.ToString()), "osVer");
PresentationFramework (20)
src\Framework\System\Windows\Documents\DocumentReference.cs (1)
106DocumentsTrace.FixedDocumentSequence.IDF.Trace(string.Format("DocumentReference.GetDocument Loaded IDP {0}", idpReloaded.GetHashCode()));
src\Framework\System\Windows\Documents\DocumentSequence.cs (6)
133DocumentsTrace.FixedDocumentSequence.Content.Trace(string.Format("Doc {0} Deferred", _references.Count)); 256DocumentsTrace.FixedFormat.IDF.Trace(string.Format("IDP.GetPage({0})", pageNumber)); 372DocumentsTrace.FixedFormat.IDF.Trace(string.Format("IDP.GetPageAsyncCancel([{0}])", userState)); 746DocumentsTrace.FixedDocumentSequence.Content.Trace(string.Format("Loaded DocumentReference {0}", _references.Count)); 767DocumentsTrace.FixedDocumentSequence.Content.Trace(string.Format("_OnCollectionChange: Add {0}", item.GetHashCode())); 782DocumentsTrace.FixedDocumentSequence.Content.Trace(string.Format("_OnCollectionChange: Add with IDP {0}", paginator.GetHashCode()));
src\Framework\System\Windows\Documents\DocumentSequenceHighlightLayer.cs (1)
81DocumentsTrace.FixedDocumentSequence.Highlights.Trace(string.Format("DSHL.RaiseHighlightChangedEvent ranges={0}", ranges.Count));
src\Framework\System\Windows\Documents\FixedDocument.cs (10)
168DocumentsTrace.FixedFormat.FixedDocument.Trace(string.Format("Page {0} Deferred", _pages.Count)); 340DocumentsTrace.FixedFormat.IDF.Trace(string.Format("IDP.GetPage({0})", pageNumber)); 447DocumentsTrace.FixedFormat.IDF.Trace(string.Format("IDP.GetPageAsyncCancel([{0}])", userState)); 483DocumentsTrace.FixedFormat.IDF.Trace(string.Format("IDF.GetContentPositionForElement({0})", element)); 682DocumentsTrace.FixedFormat.FixedDocument.Trace(string.Format("SyncGetPageWithCheck {0} is invalid page", index)); 691DocumentsTrace.FixedFormat.FixedDocument.Trace(string.Format("SyncGetPage {0}", index)); 760DocumentsTrace.FixedFormat.FixedDocument.Trace(string.Format("GetPageSize {0}", pageNumber)); 1052DocumentsTrace.FixedFormat.FixedDocument.Trace(string.Format("Loaded Page {0}", _pages.Count)); 1238DocumentsTrace.FixedFormat.IDF.Trace(string.Format("IDP.GetPageAsyncDelegate {0}", Pages.IndexOf(pc))); 1257DocumentsTrace.FixedFormat.IDF.Trace(string.Format("IDP.OnGetPageRootCompleted {0}", Pages.IndexOf((PageContent)sender)));
src\Framework\System\Windows\SystemResourceKey.cs (1)
1869String.Format("Invalid SystemResourceKeyID (id={0})", (int)id));
src\Framework\System\Windows\Window.cs (1)
6242Debug.Assert(false, String.Format("specifiedRestoreBounds can't be {0}", specifiedRestoreBounds));
System (11)
compmod\system\collections\specialized\notifycollectionchangedeventargs.cs (1)
315Contract.Assert(false, String.Format("Unsupported action: {0}", action.ToString()));
net\System\Net\Internal.cs (9)
1429GlobalLog.Print(" certContextArray = " + String.Format("0x{0:x}", certContextArray)); 1430GlobalLog.Print(" rootStore = " + String.Format("0x{0:x}", rootStore)); 1432GlobalLog.Print(" phMappers = " + String.Format("0x{0:x}", phMappers)); 1434GlobalLog.Print(" palgSupportedAlgs = " + String.Format("0x{0:x}", palgSupportedAlgs)); 1435GlobalLog.Print(" grbitEnabledProtocols = " + String.Format("0x{0:x}", grbitEnabledProtocols)); 1438GlobalLog.Print(" dwSessionLifespan = " + String.Format("0x{0:x}", dwSessionLifespan)); 1439GlobalLog.Print(" dwFlags = " + String.Format("0x{0:x}", dwFlags)); 1440GlobalLog.Print(" reserved = " + String.Format("0x{0:x}", reserved)); 2012GlobalLog.Enter("PolicyWrapper::VerifyChainPolicy", "chainContext="+ chainContext + ", options="+String.Format("0x{0:x}", cpp.dwFlags));
sys\system\io\ports\SerialStream.cs (1)
821Contract.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)
68return string.Format("Data is found at index {0}.", this.FoundIndex); 72return 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)
3026Debug.Assert(ordinal >= 0, string.Format("Invalid ordinal: {0}", ordinal)); 3029Debug.Assert(fieldOffset >= 0, string.Format("Invalid field offset: {0}", fieldOffset)); 3062Debug.Assert(ordinal >= 0, string.Format("Invalid ordinal: {0}", ordinal)); 3065Debug.Assert(fieldOffset >= 0, string.Format("Invalid field offset: {0}", fieldOffset));
fx\src\data\System\Data\Common\DBConnectionString.cs (3)
281Debug.Assert(false, string.Format("Unknown behavior for combined set: {0}", combinedSet._behavior)); 298Debug.Assert(false, string.Format("Unknown behavior for combined set: {0}", combinedSet._behavior)); 302Debug.Assert(false, string.Format("Unknown behavior for component set: {0}", componentSet._behavior));
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (4)
864Debug.Assert(false, string.Format("Current column is marked as being a DataFeed, but no DataFeed compatible method was provided. Method: {0}", _currentRowMetadata[destRowIndex].Method)); 889Debug.Assert(false, string.Format("Current column is marked as being a SqlType, but no SqlType compatible method was provided. Method: {0}", _currentRowMetadata[destRowIndex].Method)); 981Debug.Assert(false, string.Format("Current column is marked as being a SqlType, but no SqlType compatible method was provided. Method: {0}", _currentRowMetadata[destRowIndex].Method)); 1084Debug.Assert(false, string.Format("Unknown value source: {0}", _rowSourceType));
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (1)
472string keyName = String.Format(@"SOFTWARE\Microsoft\Cryptography\Defaults\Provider\{0}", providerName);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (5)
58Debug.Assert(_peekedChar == -1 || ((_peekedChar >= char.MinValue) && (_peekedChar <= char.MaxValue)), string.Format("Bad peeked character: {0}", _peekedChar)); 92Debug.Assert(readChar == -1 || ((readChar >= char.MinValue) && (readChar <= char.MaxValue)), string.Format("Bad read character: {0}", readChar)); 114Debug.Assert((_peekedChar >= char.MinValue) && (_peekedChar <= char.MaxValue), string.Format("Bad peeked character: {0}", _peekedChar)); 159Debug.Assert((_peekedChar >= char.MinValue) && (_peekedChar <= char.MaxValue), string.Format("Bad peeked character: {0}", _peekedChar)); 393Debug.Assert((inBufferCount > 0) && (inBufferCount <= inBuffer.Length), string.Format("Bad inBufferCount: {0}", inBufferCount));
fx\src\data\System\Data\SqlClient\SqlSequentialTextReaderSmi.cs (3)
39Debug.Assert(_peekedChar == -1 || ((_peekedChar >= char.MinValue) && (_peekedChar <= char.MaxValue)), string.Format("Bad peeked character: {0}", _peekedChar)); 70Debug.Assert(readChar == -1 || ((readChar >= char.MinValue) && (readChar <= char.MaxValue)), string.Format("Bad read character: {0}", readChar)); 86Debug.Assert((_peekedChar >= char.MinValue) && (_peekedChar <= char.MaxValue), string.Format("Bad peeked character: {0}", _peekedChar));
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
1824String.Format("Unexpected SniContext on call to TryRun; SniContext={0}", stateObj.SniContext));
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (2)
835Debug.Assert((remaining == -1 && _sessionHandle == null) || (0 <= remaining && remaining < 3), string.Format("_pendingCallbacks values is invalid after decrementing: {0}", remaining)); 921Debug.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)
111usingCode.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)
249String.Format("//* {0}\r\n", DecoupledProviderInstanceName), 250String.Format("//* {0}\r\n", AssemblyUniqueIdentifier), 878return String.Format("#pragma namespace(\"\\\\\\\\.\\\\{0}\")\r\n\r\n", namespaceName.Replace("\\", "\\\\"));
WmiGenerator.cs (2)
5006throw new ArgumentOutOfRangeException(String.Format(GetString("UNABLE_TOCREATE_GEN_EXCEPT") , strProvider )); 5015throw new ArgumentOutOfRangeException(String.Format(GetString("UNABLE_TOCREATE_GEN_EXCEPT") , strProvider));
System.ServiceModel (12)
System\ServiceModel\BasicHttpSecurity.cs (2)
25Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", mode.ToString())); 125Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(basicHttpSecurityMode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", basicHttpSecurityMode.ToString()));
System\ServiceModel\Channels\MsmqDiagnostics.cs (1)
247Fx.Assert(String.Format("Unexpected messageId size: {0}", messageId.Buffer.Length));
System\ServiceModel\NetMsmqBinding.cs (1)
307Fx.Assert(NetMsmqSecurityModeHelper.IsDefined(netMsmqSecurityMode), string.Format("Invalid NetMsmqSecurityMode value: {0}.", netMsmqSecurityMode.ToString()));
System\ServiceModel\NetMsmqSecurity.cs (1)
31Fx.Assert(NetMsmqSecurityModeHelper.IsDefined(mode), string.Format("Invalid NetMsmqSecurityMode value: {0}.", mode.ToString()));
System\ServiceModel\NetTcpBinding.cs (1)
448Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.Format("Invalid SecurityMode value: {0}.", securityMode.ToString()));
System\ServiceModel\NetTcpSecurity.cs (1)
26Fx.Assert(SecurityModeHelper.IsDefined(mode), string.Format("Invalid SecurityMode value: {0}.", mode.ToString()));
System\ServiceModel\WSDualHttpSecurity.cs (1)
27Fx.Assert(WSDualHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid WSDualHttpSecurityMode value: {0}", mode.ToString()));
System\ServiceModel\WSFederationHttpSecurity.cs (2)
24Fx.Assert(WSFederationHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid WSFederationHttpSecurityMode value: {0}", mode.ToString())); 77Fx.Assert(WSFederationHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid WSFederationHttpSecurityMode value: {0}", mode.ToString()));
System\ServiceModel\WSHttpSecurity.cs (2)
114Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.Format("Invalid SecurityMode value: {0}.", mode.ToString())); 125Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.Format("Invalid SecurityMode value: {0}.", securityMode.ToString()));
System.Web (6)
Management\WebEvents.cs (1)
923return(fmt != null) ? String.Format(fmt, arg0) : null;
State\OutOfProcStateClientManager.cs (1)
332" lockDate=" + string.Format("{0:x}", results.lockDate) +
UI\DataBinder.cs (3)
138return String.Format(format, value); 197return string.Format(format, value); 304return string.Format(format, value);
UI\XPathBinder.cs (1)
84return String.Format(format, value);
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
901publicKeyString += String.Format("{0}", Marshal.ReadByte(publicKeyOrToken, pos).ToString("x2"));