.NET Framework 4.5.1 中的新增类型和成员

下面的表列出了.NET Framework 4.5.1中的新类型和成员,通过程序集来组织。 在表中,新类型和成员进行命名空间、类型和成员名称按字母顺序显示。 此信息适用于 .NET Framework 中的完整版本的更改。 针对Windows Store apps的.NET APIs包括位于4.5.1版本中的新方法:the System.IO.Stream.AsRandomAccessStream method(在System.Runtime.WindowsRuntime.dll

  • mscorlib.dll

  • System.Core.dll

  • System.Data.dll

  • System.DirectoryServices.dll

  • System.Security.dll

  • System.Transactions.dll

  • System.Web.dll

mscorlib.dll

命名空间

类型

成员

System.Diagnostics.Tracing

EventSource

ConstructionException 属性

System.Diagnostics.Tracing

EventSource

CurrentThreadActivityId 属性

System.Diagnostics.Tracing

EventSource

SetCurrentThreadActivityId(Guid) 方法

System.Diagnostics.Tracing

EventSource

SetCurrentThreadActivityId(Guid, Guid%) 方法

System.Diagnostics.Tracing

EventSource

WriteEventWithRelatedActivityId(Int32, Guid, array<Object[]) 方法

System.Diagnostics.Tracing

EventSource

WriteEventWithRelatedActivityIdCore(Int32, Guid*, Int32, EventSource.EventData*) 方法

System.Diagnostics.Tracing

EventWrittenEventArgs

ActivityId 属性

System.Diagnostics.Tracing

EventWrittenEventArgs

RelatedActivityId 属性

System.Runtime

GCLargeObjectHeapCompactionMode

所有成员

System.Runtime

GCLargeObjectHeapCompactionMode

CompactOnce 成员

System.Runtime

GCLargeObjectHeapCompactionMode

Default 成员

System.Runtime

GCSettings

LargeObjectHeapCompactionMode 属性

System.Runtime.InteropServices

Marshal

CreateAggregatedObject<T>(IntPtr, T) 方法

System.Runtime.InteropServices

Marshal

CreateWrapperOfType<T, TWrapper>(T) 方法

System.Runtime.InteropServices

Marshal

DestroyStructure<T>(IntPtr) 方法

System.Runtime.InteropServices

Marshal

GetComInterfaceForObject<T, TInterface>(T) 方法

System.Runtime.InteropServices

Marshal

GetDelegateForFunctionPointer<TDelegate>(IntPtr) 方法

System.Runtime.InteropServices

Marshal

GetFunctionPointerForDelegate<TDelegate>(TDelegate) 方法

System.Runtime.InteropServices

Marshal

GetNativeVariantForObject<T>(T, IntPtr) 方法

System.Runtime.InteropServices

Marshal

GetObjectForNativeVariant<T>(IntPtr) 方法

System.Runtime.InteropServices

Marshal

GetObjectsForNativeVariants<T>(IntPtr, Int32) 方法

System.Runtime.InteropServices

Marshal

OffsetOf<T>(String) 方法

System.Runtime.InteropServices

Marshal

PtrToStructure 方法

System.Runtime.InteropServices

Marshal

PtrToStructure<T>(IntPtr, T) 方法

System.Runtime.InteropServices

Marshal

SizeOf<T>() 方法

System.Runtime.InteropServices

Marshal

SizeOf<T>(T) 方法

System.Runtime.InteropServices

Marshal

StructureToPtr<T>(T, IntPtr, Boolean) 方法

System.Runtime.InteropServices

Marshal

UnsafeAddrOfPinnedArrayElement<T>(array<T[], Int32) 方法

System.Core.dll

命名空间

类型

成员

System.IO.MemoryMappedFiles

MemoryMappedViewAccessor

PointerOffset 属性

System.IO.MemoryMappedFiles

MemoryMappedViewStream

PointerOffset 属性

System.Data.dll

命名空间

类型

名称

System.Data.Common

DbParameter

Precision 属性

System.Data.Common

DbParameter

Scale 属性

System.Data.SqlClient

SqlConnectionStringBuilder

ConnectRetryCount 属性

System.Data.SqlClient

SqlConnectionStringBuilder

ConnectRetryInterval 属性

System.DirectoryServices.dll

命名空间

类型

成员

System.DirectoryServices.ActiveDirectory

DomainMode

Windows2012R2Domain 成员

System.DirectoryServices.ActiveDirectory

ForestMode

Windows2012R2Forest 成员

System.Security.dll

命名空间

类型

成员

System.Security

SignedXml

SafeCanonicalizationMethods 属性

System.Transactions.dll

命名空间

类型

成员

System.Transactions

TransactionScope

TransactionScope(Transaction, TimeSpan, TransactionScopeAsyncFlowOption) 方法

System.Transactions

TransactionScope

TransactionScope(Transaction, TransactionScopeAsyncFlowOption) 方法

System.Transactions

TransactionScope

TransactionScope(TransactionScopeAsyncFlowOption) 方法

System.Transactions

TransactionScope

TransactionScope(TransactionScopeOption, TimeSpan, TransactionScopeAsyncFlowOption) 方法

System.Transactions

TransactionScope

TransactionScope(TransactionScopeOption, TransactionOptions, TransactionScopeAsyncFlowOption) 方法

System.Transactions

TransactionScope

TransactionScope(TransactionScopeOption, TransactionScopeAsyncFlowOption) 方法

System.Transactions

TransactionScopeAsyncFlowOption

所有成员

System.Transactions

TransactionScopeAsyncFlowOption

Enabled 成员

System.Transactions

TransactionScopeAsyncFlowOption

Suppress 成员

System.Web.dll

命名空间

类型

成员

System.Web.Hosting

CustomLoaderAttribute

所有成员

System.Web.Hosting

CustomLoaderAttribute

CustomLoaderAttribute(Type) 构造函数

System.Web.Hosting

CustomLoaderAttribute

CustomLoaderType 属性

System.Web.Hosting

HostingEnvironment

StopListening 事件

System.Web.Hosting

IStopListeningRegisteredObject

所有成员

System.Web.Hosting

IStopListeningRegisteredObject

StopListening 方法

System.Web.Hosting

ISuspendibleRegisteredObject

所有成员

System.Web.Hosting

ISuspendibleRegisteredObject

Suspend 方法

请参见

概念

.NET Framework 4.5、4.5.1 和 4.5.2 中的新增功能