?? ???? ???????? ????? 2783808 Microsoft .NET ????????? 4.5 ?????? ??? ?? ??? 2 (SP2) ????? Windows 7, Windows 7 ?????? ??? 1 (SP1), Windows 2008 R2, Windows 2008 R2 SP1, Windows 2008 SP2 ?? Windows Vista SP2 ??? ??? ?? ???????? ????? the.NET Framework 4.5 ??? ?? ???????? ?? ?? ???? ?? ??? ?????? ??? ???????? ?? ?? ???? ?? ?? ???????? ?? ???? ??? ???? ??????? ?? ???, "?? ?? ???????? ????? ?? ???? ?? ????????" ?????? ??????
???????? ???????
?? ?? ??????? ???????? Microsoft ?? ?????? ??? ???????, ?? ???? ?? ???? ??? ?????? ?????? ?? ??? ???? ?? ??? ?????? ??? ?? ?? ?? ??????? ?????? ?? ????? ?? ??? ??? ???? ????? ???????? ?? ???? ???? ????
?? ?????? ?? ?? ???? ?? ???, ???????? ??????? ???? ?? ??? Microsoft ?????? ?????? ???? ?? ?????? ????? Microsoft ?????? ?????? ???? ?? ??? ?????? ?? ?????? ????? ?? ???? ??? ??????? ?? ???? ???? ?? ???, ????? Microsoft ??? ???? ?? ????:
??? ????? ?????? ???, ????? ?? ?????????? ?????? ????? ?? ??? ??? ?? ??? ???? ???? ?? ???? ??? Microsoft ?????? ????????? ????????? ???? ?? ?? ??? ????? ?????? ???? ?????? ?? ??????? ????? ???????? ?????? ???????? ?? ?? ???????? ?? ??????? ?????? ?? ??? ???????????? ??? ????? ???? ???? ?? ??? ??????? ?????? ????? ???? ??????
??????????
?? ???????? ?? ???? ???? ?? ???, ??? ?? the.NET Framework 4.5 SP1 Windows 7, Windows 7 SP1, Windows 2008 R2, Windows 2008 R2 SP1, Windows 2008 SP2 ?? Windows Vista SP2 ??? ??????? ???? ?????? ???
???????? ??????????
??? ?? ???????? ??????? ????? ?? ?? ??? ???, ?? ?? ?? ???????? ?? ???? ???? ?? ??? ???? ???????? ?? ???????? ???? ????? ?? ??????? ???? ??? ?? ?? ???????? ?? ???? ???? ?? ???? ???? ??? .NET Framework ????????? ??? ???? ???
???????? ??????????? ???????
?? ???????? ?? ???? ?????? ?? ???? ???????? ?? ???????????? ???? ?????
????? ???????
?? ??? ?? ??????? ?????? ??? ?? ??????? ????
?? ????????? ?? ??????? ??????? ????? ????????? (?? ??? ?? ????? ?????????) ??? ?? ????? ?????? ??? ???????? ???? ?????? ?? ??? ?? ??????? ?? ??? ??????? ????????? ??? (UTC ???) ???????? ???? ???? ??? ?? ????? ??????? ????? ???, ?? ??? ??????? ??? ??? ?????? ???? ???? ??? UTC ?? ??????? ??? ?? ??? ???? ?????? ?? ???, ?? ????? ????
??? ???? ??? ???
?? ?????? ?? ??? ???????? ???? ??? ?????
??? ??????? x86-?????? ????????? ?? Windows 7, Windows 7 SP1, Windows 2008 SP2 ?? Windows Vista SP2 ?? ???
?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
| ????? ?? ??? | ????? ??????? | ????? ?? ???? | ?????? | ??? | ??????????? |
|---|
| Clr.dll | 4.0.30319.19047 | 6,876,608 | 28-??-2012 | 01: 28 | x 86 |
| Mscordacwks.dll | 4.0.30319.19047 | 1,299,440 | 28-??-2012 | 01: 28 | x 86 |
| Mscordbi.dll | 4.0.30319.19047 | 1,096,656 | 28-??-2012 | 01: 28 | x 86 |
| Mscorlib.dll | 4.0.30319.19047 | 5,171,152 | 28-??-2012 | 02: 39 | x 86 |
| Presentationcore.dll | 4.0.30319.19047 | 3,224,560 | 28-??-2012 | 02: 39 | x 86 |
| Presentationframework.dll | 4.0.30319.19047 | 6,187,016 | 28-??-2012 | 02: 39 | x 86 |
| Sos.dll | 4.0.30319.19047 | 746,944 | 28-??-2012 | 01: 28 | x 86 |
| System.dll | 4.0.30319.19047 | 3,449,288 | 28-??-2012 | 02: 39 | x 86 |
| System.identitymodel.dll | 4.0.30319.19047 | 1,084,928 | 28-??-2012 | 02: 39 | x 86 |
| System.printing.dll | 4.0.30319.19047 | 342,000 | 28-??-2012 | 02: 39 | x 86 |
| System.runtime.serialization.dll | 4.0.30319.19047 | 1,051,696 | 28-??-2012 | 02: 39 | x 86 |
| System.servicemodel.channels.dll | 4.0.30319.19047 | 158,768 | 28-??-2012 | 02: 39 | x 86 |
| System.servicemodel.discovery.dll | 4.0.30319.19047 | 312,360 | 28-??-2012 | 02: 39 | x 86 |
| System.servicemodel.dll | 4.0.30319.19047 | 6,368,784 | 28-??-2012 | 02: 39 | x 86 |
| Windowsbase.dll | 4.0.30319.19047 | 1,237,488 | 28-??-2012 | 02: 39 | x 86 |
??? ??????? x64-?????? ??????? ?? Windows 7, Windows 7 SP1, Windows 2008 R2, Windows 2008 R2 SP1, Windows 2008 SP2 ?? Windows Vista SP2 ?? ???
?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
| ????? ?? ??? | ????? ??????? | ????? ?? ???? | ?????? | ??? | ??????????? |
|---|
| Clr.dll | 4.0.30319.19047 | 9,804,224 | 28-??-2012 | 00: 33 | x 64 |
| Clr.dll | 4.0.30319.19047 | 6,876,608 | 28-??-2012 | 01: 28 | x 86 |
| Mscordacwks.dll | 4.0.30319.19047 | 1,742,816 | 28-??-2012 | 00: 33 | x 64 |
| Mscordacwks.dll | 4.0.30319.19047 | 1,299,440 | 28-??-2012 | 01: 28 | x 86 |
| Mscordbi.dll | 4.0.30319.19047 | 1,497,040 | 28-??-2012 | 00: 33 | x 64 |
| Mscordbi.dll | 4.0.30319.19047 | 1,096,656 | 28-??-2012 | 01: 28 | x 86 |
| Mscorlib.dll | 4.0.30319.19047 | 5,120,464 | 28-??-2012 | 00: 33 | x 64 |
| Mscorlib.dll | 4.0.30319.19047 | 5,171,152 | 28-??-2012 | 02: 39 | x 86 |
| Presentationcore.dll | 4.0.30319.19047 | 3,207,680 | 28-??-2012 | 00: 33 | x 64 |
| Presentationcore.dll | 4.0.30319.19047 | 3,224,560 | 28-??-2012 | 02: 39 | x 86 |
| Presentationframework.dll | 4.0.30319.19047 | 6,187,016 | 28-??-2012 | 02: 39 | x 86 |
| Sos.dll | 4.0.30319.19047 | 785,344 | 28-??-2012 | 00: 33 | x 64 |
| Sos.dll | 4.0.30319.19047 | 746,944 | 28-??-2012 | 01: 28 | x 86 |
| System.dll | 4.0.30319.19047 | 3,449,288 | 28-??-2012 | 02: 39 | x 86 |
| System.identitymodel.dll | 4.0.30319.19047 | 1,084,928 | 28-??-2012 | 02: 39 | x 86 |
| System.printing.dll | 4.0.30319.19047 | 342,016 | 28-??-2012 | 00: 33 | x 64 |
| System.printing.dll | 4.0.30319.19047 | 342,000 | 28-??-2012 | 02: 39 | x 86 |
| System.runtime.serialization.dll | 4.0.30319.19047 | 1,051,696 | 28-??-2012 | 02: 39 | x 86 |
| System.servicemodel.channels.dll | 4.0.30319.19047 | 158,768 | 28-??-2012 | 02: 39 | x 86 |
| System.servicemodel.discovery.dll | 4.0.30319.19047 | 312,360 | 28-??-2012 | 02: 39 | x 86 |
| System.servicemodel.dll | 4.0.30319.19047 | 6,368,784 | 28-??-2012 | 02: 39 | x 86 |
| Windowsbase.dll | 4.0.30319.19047 | 1,237,488 | 28-??-2012 | 02: 39 | x 86 |
?? ??? ?? ??????? ?????? ??? ?? ??????? ????
?? ???????? ????? ?? ?? ???? ?? ????????
??????? ???? ?????? (CLR) ????????
?????? 1??? .NET Framework 4.5 ????????? ????????? ?? ?????? ??????? ?? ?? ?????? ???? ???? ???????? ?? ????? ?? ?????? ???? ???, ?? ??? ?????? ?? ???? ???
?????? 2PerformanceCounterCategory.GetCategories ?? ??? ???? ????? ???????? ?? ?? ???? ?????? ????????? ?? ??? ???????? ?? ???-????????? ??????? ?? ????? ?? ??? ??? ???????? ?? ???? ?? ????? ??? ??, ?? .NET Framework ????????? ??????????? ?????? ????????? ????????? ???? ?? ??? ????? ?? ???? ???? ?? ?? ??? ???? ??, ?? ??? ??? ???? ???? ??:
PerformanceCounterCategory[] categories;
categories = PerformanceCounterCategory.GetCategories();
Console.WriteLine(categories.Length + " categories are registered on this computer");
???????? ?? ???? ???? ?? ???, ?? ????? ?? LocalizedPerfCounter ???????????? ????? ????????? ???????????? ????? ??? ???? .NET Framework ????????? ?? ??? ?????? ????:
<configuration>
<appSettings>
<add key="LocalizedPerfCounter" value="true" />
</appSettings>
</configuration>Windows ????? ???? (WCF) ????????
?????? 1
???? ?? ?? UTF-8 ?? ????? ?? ???
System.Xml.XmlDictionaryReader WCF ???? ?? ????? ???? ?? ???? ????????? ??????? ???? ???????? ???? ????????? ????? ?? ??????? ???? ?? ???? ??? ??? ??????? ???? ???, ?? ??? ????????? ???? ?? ???? ???
???System.Xml.XmlDictionaryReader ???? ?? ???? ??? ???? ??????? ?? ???, ????? MSDN ??? ???? ?? ????:
?????? 2HttpsTransportBindingElement.RequireClientCertificate ???
FALSE???? ?? ??? ??? ?? ?? .NET Framework 4.5 ?? ??? ????? ??????? ??? ??? ???????? ??, WCF ????????? ??? ??????? ?????? ???? ????? ????? ??? ????????? ??????? ?????? ???? ?? ??????? ?? ??? ????? ???? ??, ?? WCF ?? ????? ??? ??? ?????:
- ?? ???????? ??, ?? ????????
- ?? ???????? ???? ?? ?? ???????? ????
?? ?????? ???, ?? ???-?? ?????????? ?? ??? ???? ?? ??? ?? ?????????? ????????? ??? ???? ??? (?????? ?? ???, ??
?????? ???? ?? ???????? ????, ????? ???? ?? ????? ??? ?? ????? ???? ?? ?? ????????? ??? ????)? ?? ???????? ?? WCF ????????? ??????? ?????????? ?????? ???? ??, ??????? ?????? ???? ?????? ???? ??, ?? ?? ?????-???????????? ?????? ?? ?????? ?? ??? ????????? ?? ????? ???? ??? ???????, ?????????? ???????? ??? ??? ?????? ???? ???? ???? ??? ??, ?? ??????? ???????? ???? ?????? ?????? ?? ???, ??????? ?? ????? ?? ?????? ????? ?? ???????? ???? ?? ???, ?? ??? ????? ?? ??? ??????? ?????? ???? ?? ???????? ???????? ?? ???????? ????????? ???? ?? ??? ??????? ??????? ?? ????? ???? ?? ?????? ?? ???? ????
????????? ?????? ???? ?? ???, ?? EndpointBehavior ??????? ?????, ?? ?? ??????? ????? ????? ?? ???????? ??? ??????? ?????? ?? ???, ??? ?? ????? ?? ??? ?? ??????? ?? ?????? ?? ??? ????? ??? ?????:
class ValidateOptionalClientCertificateBehavior : IEndpointBehavior
{
private const string ValidateOptionalClientCertificates = " wcf:HttpTransport:ValidateOptionalClientCertificates";
public void AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters)
{
IDictionary<string, object> endpointSettings = bindingParameters.Find<IDictionary<string, object>>();
if (endpointSettings == null)
{
endpointSettings = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
bindingParameters.Add(endpointSettings);
}
if (endpointSettings.ContainsKey(ValidateOptionalClientCertificates))
{
endpointSettings[ValidateOptionalClientCertificates] = true;
}
else
{
endpointSettings.Add(ValidateOptionalClientCertificates, true);
}
}
public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
{
}
public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
{
}
public void Validate(ServiceEndpoint endpoint)
{
if (endpoint.ListenUri.Scheme != "https")
{
throw new InvalidOperationException();
}
}
}
}???????? ??? ??, ?? ????? ????? ????? ?????? bindingParameters ?????? ???? ?? ??? ???? ???? ???:
string ValidateOptionalClientCertificatesString = "wcf:HttpTransport:ValidateOptionalClientCertificates";
Dictionary<string, object> endpointSettings = new Dictionary<string, object>();
endpointSettings.Add(ValidateOptionalClientCertificatesString, true);
bindingParameters.Add(endpointSettings); ?????? 3WS-???, ?????????? ????????? ????????? (UDP) ?? ?? ????? ?? ?? ?????? ???? ?? ???? WCF ???? ????? ???, ?? ?? ?? ?? ???? ????? ???????? ?? ????? ?? ???? ??:
- ????? ?? CPU ????? ????????? ??? ?? ?????? ???
- ?????????? ??????? ??????? ?? ???? ???? ???
- ?? SOAP ??? ????? ???? .NET Framework 4.5 ?? ???? ??? ?? ??????? ?? ?? ?? ??? ?? ?? ???????? ?? ???? ??????
?? ???????? SOAP ??? ????? UDP ????? ????? ?? ?? ??? WS-??? ?????????? ????? WS-??? ?? ??? ????????? ???? ???? ??? ?? ?? ????? ????? ?? ??????? ?? ???? ???? ?? ??? ?? ????? ???
??????? .NET Framework 4.5 ?????? ?? ?????? ???? ???? ??? ??, ?? ?? ?? ?????? ?? ???? ??? ??????? ??? .NET Framework 4.5 ????? ?? ?? ?? ???? ????? ???? ?? ?? ??????? ??? ?? ???????? ?? ???? ????
Windows ????????? ???? (WPF) ????????
?????? 1??? ???????? ?????? ?? ??? ???????? ?????? ???????? (GDI) ??????? ?? ??? ??????? ???? ?? ??? ?? a.NET WPF ????? 4.5-?????? ???? ?? ????? ???? ??? ???? ?????? ???????? ???? ??? ?? ?????? ????? ????????? ?? ???? ???? ?? ???? ??:
- ?? ???-????????? ????? ???? ?? ????? ???? ?? ?? ???????? ?????? ?? ????? ???? ???
- ???????? ?????? ??????? ????? ???????? ??? ?? ?? ??:
- WPF 4.0 ???????
- WPF ??????? 4.5
- WPF ??????? 3.5 ?? ???????? ?? ????? Microsoft ???????? ???? ??? ????? ???? ??? ?? (?? ???? ???????? ???????? ?? ???????? ????? ??):
980294
(http://support.microsoft.com/kb/980294/
)
?????? ?????? ??? ???? XPS ????????? ?? .NET Framework 3.0 ?? ????? ???? ????? ???? ??, ?? ???????? ?????? ??? ??????? ???? ???
- ?? ??? ?? ?? ??? ??? ????????? ??????? ?????
?? ?????? ???? ?? ??????? ?? ??? ?????? ????????? GDI ?????? ??? ????????? ???? ?? ??? ????? ???? ???? ?? ?? ?????? ?? ??? ??? ?? ??? ??? ??? ???? ????? ???????? ???? ??? ?????? ????? ???????? ?? ????? KB980294, WPF 4.0 ??????? ?? WPF ??????? ??? 4.5 ?????? ???? ???? ?? ?? ???????? ?? ???? ???? ?? ??? ???? ??? ??? ??, ????? ???????? ?? ?????? ????? ?????? ????????? ?? ????? ?????? ????? dominates. ?? ???????? ????? ???????? ?? ?????? caches ???? ??? ??? ????? ?????? ?? ?? ???? ??? ???????? ?? ???? ???? ?? ???, ????? ???????? ?? ?????? ????? ?? ??? ????? GDI ?????? ??? ?? ??? ????? ??? ??????? ?? ??? ?? ????? ?? ???
?????? 2?? ???????? ?? ????? ????:
- ???? ?????? ????? WPF ???????? ??? ?? .NET Framework 4.5-?????? ????????? ?? ???? ??? ??? ???????? ????? ???? ????? (IME) ?? ????? ???? ???
- ?? ???????? ??? ??? ??????
- ???????? ????? ?? ?? ??? ??? ???? ???? ?? ??????? ?? ?????? ????? ???:
- ??? ??? ?? ???? ??? ???? ??? ????? ???????? ??? ????-????? ??? ??? ??? PropertyChanged???? ?? ??? ?????? ????? ?????? ?? TextBox.Text ???????? ??? ?? ??? ??? ???? ??? ??? ??? ????? ?? ??? ???, ?? ?? ??? ?? ???????? ?? ??? ?????? ???? ?????????? ???? ???? ?? ??? ???? ???? ??? ???? ??? ??, ??? ?? ???? ???????? ?? ???? ???? ????? ??????, ?? ???????? ??? ????? ??????? ???????????? ???? ?? ???? ????
- ??? ??? ?? ???? ??? ????? ??? ??? ?????? ?? ??? ?? ?????? ????? ?????? ????? ????????? ?? ??? ???? ???? ???, ?????? ???????? ?? ???? ?? ??? ?? ??? ???? ?? ??? ?????? ????? ???????? ????? ???? ??? ???????? ??? ?? ??? ???? ???? ?? ?? ?????? ????? ??, ?? ??? ?? ??? ???? ?????? ?? ????? ??? ???????????? ?? ???????
- ?? IME ???????? "??? ???????? ?????? ??????? ???? ??? ??" ?????? ??? ??, ?? ?? WPF ????????? ??? ?? WM_IME_CHAR ????? ????? ?? ??? ????? ???
??????? ?? ????? ??? ??????? ?????? ?? ??? ??? ???? ?? ????? ??? ??? ???? ??? ???? ?? ????? ?? ????
?? ???????? ???, ??? System.InvalidOperationException ????? ?? ??? .NET Framework 4.5-?????? ????????? ????? ?? ???? ????
?? ?????? ?? ?? ???? ?? ???, ???????? ???? ???? ???? ?? ?? ???????? ?? ?? ??????? ?????? ?? ?? ???? ??? ???? ????? (TFS) ??????? ???? ?????? Visual Studio 2012 ????? ???? Engkoo ?????? ?????? IME ?? ??? ??? ????? ?? ?????? ?? ??????? ????? ????? ??:
??? ??? ?? ???? ??? ?? ??? ????? ???? Visual Studio 2012 ??? "???? ?? ??? ????? ???? ???" ?????? ??? ????? ??? Engkoo IME WM_IME_CHAR ????? ????? ??, ?? ?? ??? ????? ???? ?? ??? ?? ???? ??? Enter ?????? ?????, Visual Studio 2012 ??????
?????? ??? inputting???? TFS ????? ???? ?????? ?? ?? ?????? ?? ???? ?? ???? ???
????? ?????? ?? ???? ?? WPF ??????? 4.0 ?? WPF ?? ???? ?????????? ??????? ??? ??? ???????, ???? WPF ??????? 4.5 ???? ?? ??? ??? ???? ???? ???
?????? 3?? ???????? ?? ????? ????:
- ???? ??? ????-????? ??? declares ?? WPF ????????? ??? ?? ???? ?? ?? ???????? ????-????? ??? ???? ???? ?????? ?? ???, ???????? ?? ?????????? ??:
{Path=A.B.C.D ????????}
- ?? PropertyChanged ????? ??? ????? ?? ??? ?? ????? ????? ?? ????? ?? ???? ???? ??? ??? ?????? ?? ???, C. ??? ?? ??? ???????? ????? ????? ????? ?????
???- ????? ????? UI ????? ?? ????? ?? ???? ?? ????? ?? ???? ???
- UI ????? ????? ???????? ?????? ????? ??? ?? ???
- PropertyChanged ????? UI ????? ???????? ???? ???? ?? ????, ???? ???? ???? PropertyChanged ????? ?? ?? ????? ??? ?? ?? ?????? ?????? ?? ???, ???? ?? ????? ?? a. ??? ?? ??? ???????? ????? ?????
??????? ?? ????? ?? ????? PropertyChanged ????? ?? ???? ??? ?? UI ????? ????? ????
?? ?????? ???, ????? ????? ?? ????? ???? ???? ??? ??? ??, ???? ?? ???? ???? ??? ?????? ?? ???, a. ??? ?? ??? ??? ??? D ??????? ???? ???????, ???????? ?????? ??? ????????? ??? ??? a. D ??????? ???? ??
??? WPF 4.5 ??????? ?? ???? ?????????? ??????? ?? ?????? ?? ???????? ?? ???? ??? ???????, ???? WPF ??????? 4.5 ???? ?? ??? ??? ???? ???? ???
?????? 4?? ???????? ?? ????? ????:
- ?? TextBlock ???????? ????? ???? ?? ??? ??? ?? ????? ?? ?? WPF ????????? ??, ?? ??? ????? ?? ???? ???? ??:
<TextBlock TextTrimming="CharacterEllipses" TextWrapping="NoWrap">
- 9600 ???? ?? ?? ???? ???????? ?? ??? ????? ?? ???????
- ??? ?? WPF 4.5 ??????? ??? ??? ???????? ?? ???? ????????? ??????
?? ???????? ???, ??? ?? ?? ?????? TextBlock ???????? ????????? ???? ??, ?? ??? ?? ???????? ?????? ????? ?? ??? ?????? ???? ??? ?????? ?? ???, ?? ????????? ????????? ?? ?????? ??
n/ 9600?
???n ??? ??? ?? ????? ?? ???????????? ???? ?? ?? ??????????? ??? ???????, TextBlock ???????? ????? ?? ??? ?????? ???? ?? ?? ??? ?? ??? ?????? ????????? ???? ?? ?? ???????? ?????? ???