AppDomainSetup.SetNativeFunction(String, Int32, IntPtr) Metoda

Definice

Poskytuje modul CLR (Common Language Runtime) s alternativní implementací funkce porovnání řetězců.

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)

Parametry

functionName
String

Název funkce porovnání řetězců, která se má přepsat.

functionVersion
Int32

Verze funkce. Pro rozhraní .NET Framework 4.5 musí být jeho hodnota 1 nebo vyšší.

functionPointer
IntPtr

nativeint

Ukazatel na funkci, která přepíše functionName.

Atributy

Výjimky

functionName je null.

functionVersion není 1 nebo vyšší.

-nebo-

functionPointer je Zero.

Poznámky

Následující metody porovnání a řazení řetězců lze přepsat metodou SetNativeFunction :

  • IsNLSDefinedString

  • CompareStringEx

  • LCMapStringEx

  • FindNLSStringEx

  • CompareStringOrdinal

  • GetNLSVersion

Informace o těchto funkcích najdete v tématu Funkce podpory národního jazyka.

Platí pro