AppDomainSetup.SetNativeFunction(String, Int32, IntPtr) 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
向通用语言运行时提供备用字符串比较功能实现。
public:
 void SetNativeFunction(System::String ^ functionName, int functionVersion, IntPtr functionPointer);
	[System.Security.SecurityCritical]
public void SetNativeFunction(string functionName, int functionVersion, IntPtr functionPointer);
	[<System.Security.SecurityCritical>]
member this.SetNativeFunction : string * int * nativeint -> unit
	Public Sub SetNativeFunction (functionName As String, functionVersion As Integer, functionPointer As IntPtr)
	参数
- functionName
 - String
 
要重载的字符串比较函数的名称。
- functionVersion
 - Int32
 
函数版本。 对于 .NET Framework 4.5,其值必须为 1 或更大。
- functionPointer
 - 
				
				IntPtr
nativeint
 
重写 functionName 函数的指针。
- 属性
 
例外
              functionName 上声明的默认值为 null。
注解
以下字符串比较和排序方法可由 方法重写 SetNativeFunction :
IsNLSDefinedStringCompareStringExLCMapStringExFindNLSStringExCompareStringOrdinalGetNLSVersion
有关这些函数的信息,请参阅 国家语言支持函数。