AppDomainSetup.SetNativeFunction(String, Int32, IntPtr) Método
Definição
Fornece ao Common Language Runtime uma implementação alternativa de uma função de comparação de cadeia de caracteres.Provides the common language runtime with an alternate implementation of a string comparison function.
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)
Parâmetros
- functionName
- String
O nome da função de comparação de cadeia de caracteres a substituir.The name of the string comparison function to override.
- functionVersion
- Int32
A versão da função.The function version. Para .NET Framework 4,5, seu valor deve ser 1 ou maior.For .NET Framework 4.5, its value must be 1 or greater.
- functionPointer
- IntPtr
Um ponteiro para a função que substitui functionName.A pointer to the function that overrides functionName.
- Atributos
Exceções
functionName é null.functionName is null.
functionVersion não é 1 ou maior.functionVersion is not 1 or greater.
Comentários
Os métodos de comparação e classificação de cadeia de caracteres a seguir podem ser substituídos pelo SetNativeFunction método:The following string comparison and sorting methods can be overridden by the SetNativeFunction method:
IsNLSDefinedStringCompareStringExLCMapStringExFindNLSStringExCompareStringOrdinalGetNLSVersion
Para obter informações sobre essas funções, consulte funções de suporte de idioma nacional.For information about these functions, see National Language Support Functions.