66 references to Format
mscorlib (5)
system\datetimeoffset.cs (2)
525
string.
Format
(Environment.GetResourceString("ArgumentOutOfRange_Range"), MinSeconds, MaxSeconds));
538
string.
Format
(Environment.GetResourceString("ArgumentOutOfRange_Range"), MinMilliseconds, MaxMilliseconds));
system\deployment\cmsutils.cs (1)
132
friendlyName = (entry.Publisher != null ? String.
Format
("{0} {1}", entry.Publisher, entry.Product) : entry.Product);
system\reflection\fieldinfo.cs (1)
715
return String.
Format
("{0}.{1}", DeclaringType.FullName, Name);
system\reflection\methodbase.cs (1)
306
return String.
Format
("{0}.{1}", DeclaringType.FullName, FormatNameAndSig());
PresentationFramework (12)
src\Framework\System\Windows\Documents\DocumentReference.cs (2)
86
DocumentsTrace.FixedDocumentSequence.IDF.Trace(string.
Format
("DocumentReference.GetDocument ({0}, {1})", Source == null ? new Uri("", UriKind.RelativeOrAbsolute) : Source, forceReload));
165
DocumentsTrace.FixedDocumentSequence.IDF.Trace(string.
Format
("====Replace old doc {0} with new {1}",
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
309
DocumentsTrace.FixedFormat.IDF.Trace(string.
Format
("IDP.GetPageAsync({0}, {1})", pageNumber, userState));
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (4)
86
DocumentsTrace.FixedDocumentSequence.TextOM.Trace(string.
Format
("GetTextPositionFromPoint {0}-{1}", point, snapToText));
133
DocumentsTrace.FixedDocumentSequence.TextOM.Trace(string.
Format
("GetRawRectangleFromTextPosition {0} {1}", position, position.LogicalDirection));
375
DocumentsTrace.FixedDocumentSequence.TextOM.Trace(string.
Format
("GetLineRange {0} {1}", position, position.LogicalDirection));
448
DocumentsTrace.FixedDocumentSequence.TextOM.Trace(string.
Format
("Contains {0} {1}", position, position.LogicalDirection));
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
385
DocumentsTrace.FixedFormat.IDF.Trace(string.
Format
("IDP.GetPageAsync({0}, {1})", pageNumber, userState));
src\Framework\System\Windows\Documents\FixedPage.cs (2)
935
DocumentsTrace.FixedFormat.FixedDocument.Trace(string.
Format
("FixedPage.GeElement {0} is non S0 grouping element in L[{1}]!", node, level));
939
DocumentsTrace.FixedFormat.FixedDocument.Trace(string.
Format
("FixedPage.GetElement {0} is NOT a grouping element in L[{1}]!!!", node, level));
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (1)
963
DocumentsTrace.FixedTextOM.Builder.Trace(string.
Format
("_FlowOrderAnalysis P{0}-L[{0}]", pageIndex, nestingLevel));
src\Framework\System\Windows\Documents\FixedTextView.cs (1)
1194
DocumentsTrace.FixedTextOM.TextView.Trace(string.
Format
("_CreatetTextPointer {0}:{1}", fixedPosition.ToString(), flowHit.ToString()));
System (11)
net\System\Net\IPEndPoint.cs (1)
122
return String.
Format
(format, m_Address.ToString(), Port.ToString(NumberFormatInfo.InvariantInfo));
net\System\Net\mail\EncodedStreamFactory.cs (1)
67
string header = String.
Format
("=?{0}?{1}?", encoding.HeaderName, useBase64Encoding ? "B" : "Q");
net\System\Net\mail\MailAddress.cs (1)
192
return String.
Format
("\"{0}\" {1}", DisplayName, SmtpAddress);
net\System\Net\mail\SmtpDateTime.cs (2)
204
return String.
Format
("{0} {1}", FormatDate(this.date),
209
return String.
Format
("{0} {1}", FormatDate(this.date),
net\System\Net\WebSockets\WebSocketHelpers.cs (6)
127
Logging.PrintInfo(Logging.WebSockets, string.
Format
("{0} = {1}",
129
Logging.PrintInfo(Logging.WebSockets, string.
Format
("{0} = {1}",
131
Logging.PrintInfo(Logging.WebSockets, string.
Format
("{0} = {1}",
133
Logging.PrintInfo(Logging.WebSockets, string.
Format
("{0} = {1}",
135
Logging.PrintInfo(Logging.WebSockets, string.
Format
("Request {0} = {1}",
138
Logging.PrintInfo(Logging.WebSockets, string.
Format
("Response {0} = {1}",
System.Data (7)
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256EncryptionKey.cs (3)
84
string encryptionKeySalt = string.
Format
(_encryptionKeySaltFormat,
92
string macKeySalt = string.
Format
(_macKeySaltFormat, _algorithmName, KeySize);
98
string ivKeySalt = string.
Format
(_ivKeySaltFormat, _algorithmName, KeySize);
fx\src\data\System\Data\SqlClient\SqlSecurityUtility.cs (1)
116
return string.
Format
(@"{0}.{1}", methodBase.DeclaringType.Name, methodBase.Name);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (2)
310
Debug.Assert((index >= 0) && (count >= 0) && (index + count <= buffer.Length), string.
Format
("Bad count: {0} or index: {1}", count, index));
395
Debug.Assert((outBufferOffset >= 0) && (outBufferCount > 0) && (outBufferOffset + outBufferCount <= outBuffer.Length), string.
Format
("Bad outBufferCount: {0} or outBufferOffset: {1}", outBufferCount, outBufferOffset));
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
10294
Debug.Assert(_size < 0 || _written <= _size, string.
Format
("Length of data written exceeds specified length. Written: {0}, specified: {1}", _written, _size));
System.Management (22)
Instrumentation\SchemaMapping.cs (19)
282
codeCCTOR.Line(String.
Format
("mapTypeToConverter[typeof({0})] = typeof({1});", ((Type)entry.Key).FullName.Replace('+', '.'), (string)entry.Value)); // bug#92918 - watch for nested classes
293
codeCCTOR.Line(String.
Format
("IWOA.GetPropertyHandle_f27(27, wbemObjectAccessIP, \"{0}\", out cimType, out {1});", propName, handleFieldName));
297
codeCTOR.Line(String.
Format
("{0} = instance.Properties[\"{1}\"];", propFieldName, propName));
330
codeNotNull.AddChild("else").Line(String.
Format
("{0}.Value = SafeAssign.GetInstance(instNET.{1});", propFieldName, field.Name));
377
codeOneLineMembers.Line(String.
Format
("{0} lazy_embeddedConverter_{1} = null;", embeddedConverterName, propFieldName));
378
CodeWriter codeConverterProp = codeClass.AddChild(String.
Format
("{0} embeddedConverter_{1}", embeddedConverterName, propFieldName));
381
codeIf.Line(String.
Format
("lazy_embeddedConverter_{0} = new {1}();", propFieldName, embeddedConverterName));
384
codeNotNull.Line(String.
Format
("embeddedConverter_{0}.ToWMI(instNET.{1});", propFieldName, field.Name));
397
codeToWMI.Line(String.
Format
("{0} instNET_{1} = instNET.{1} ;", t2, field.Name));
398
codeToWMI.Line(String.
Format
("IWOA.WritePropertyValue_f28(28, instWbemObjectAccessIP, {0}, 1, ref instNET_{1});", handleFieldName, field.Name));
406
codeToWMI.Line(String.
Format
("{0} instNET_{1} = instNET.{1} ;", t2, field.Name));
407
codeToWMI.Line(String.
Format
("IWOA.WritePropertyValue_f28(28, instWbemObjectAccessIP, {0}, 2, ref instNET_{1});", handleFieldName, field.Name));
410
codeToWMI.Line(String.
Format
("IWOA.WriteDWORD_f31(31, instWbemObjectAccessIP, {0}, instNET.{1});", handleFieldName, field.Name));
412
codeToWMI.Line(String.
Format
("IWOA.WriteQWORD_f33(33, instWbemObjectAccessIP, {0}, instNET.{1});", handleFieldName, field.Name));
425
codeQuickString.Line(String.
Format
("IWOA.WritePropertyValue_f28(28, instWbemObjectAccessIP, {0}, (instNET.{1}.Length+1)*2, instNET.{1});", handleFieldName, field.Name));
440
codeToWMI.Line(String.
Format
("IWOA.WritePropertyValue_f28(28, instWbemObjectAccessIP, {0}, 52, SafeAssign.WMITimeToString(instNET.{1}));", handleFieldName, field.Name));
444
codeToWMI.Line(String.
Format
("{0}.Value = instNET.{1};", propFieldName, field.Name));
452
codeToWMI.AddChild("else").Line(String.
Format
("{0}.Value = SafeAssign.WMITimeArrayToStringArray(instNET.{1});", propFieldName, field.Name));
457
codeToWMI.Line(String.
Format
("{0}.Value = instNET.{1};", propFieldName, field.Name));
Instrumentation\SchemaRegistration.cs (3)
378
codeCCTOR.Line(String.
Format
("mapTypeToConverter[typeof({0})] = typeof({1});", mapping.ClassType.FullName.Replace('+', '.'), mapping.CodeClassName)); // bug#92918 - watch for nested classes
867
throw new ArgumentException(String.
Format
(strformat, classPath, newClass.GetText(TextFormat.Mof)), e);
883
return String.
Format
("{0}instance of __Namespace\r\n{{\r\n Name = \"{1}\";\r\n}};\r\n\r\n", PragmaNamespace(baseNamespace), childNamespaceName);
System.Runtime.Remoting (1)
channels\core\corechannel.cs (1)
158
InternalRemotingServices.RemotingTrace(string.
Format
(
System.ServiceModel (2)
System\ServiceModel\Diagnostics\PerformanceCountersBase.cs (1)
38
return String.
Format
("{0}{1}", instanceName, StringUtil.GetNonRandomizedHashCode(fullInstanceName).ToString("X", CultureInfo.InvariantCulture));
System\ServiceModel\Diagnostics\ServicePerformanceCountersBase.cs (1)
162
return String.
Format
("{0}@{1}", serviceName, uri);
System.Windows.Forms (3)
winforms\Managed\System\WinForms\MonthCalendar.cs (3)
2732
value = string.
Format
("{0} - {1}", calendar.SelectionStart.ToLongDateString(), calendar.SelectionEnd.ToLongDateString());
2740
value = string.
Format
("{0} - {1}", calendar.SelectionStart.ToString("y"), calendar.SelectionEnd.ToString("y"));
2744
value = string.
Format
("{0} - {1}", calendar.SelectionRange.Start.ToString(), calendar.SelectionRange.End.ToString());
System.Workflow.ComponentModel (3)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (3)
823
throw new InvalidOperationException(String.
Format
(SR.GetString(SR.Error_MetaDataInterfaceMissing), assemblyLocation, "IMetaDataDispenser"));
833
throw new InvalidOperationException(String.
Format
(SR.GetString(SR.Error_MetaDataInterfaceMissing), assemblyLocation, "IMetaDataImport"));
869
throw new InvalidOperationException(String.
Format
(SR.GetString(SR.Error_MetaDataInterfaceMissing), assemblyLocation, "IMetaDataAssemblyImport"));