AppDomainSetup.SetNativeFunction(String, Int32, IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Parameters
- functionName
- String
The name of the string comparison function to override.
- functionVersion
- Int32
The function version. For .NET Framework 4.5, its value must be 1 or greater.
- functionPointer
-
IntPtr
nativeint
A pointer to the function that overrides functionName
.
- Attributes
Exceptions
functionName
is null
.
Remarks
The following string comparison and sorting methods can be overridden by the SetNativeFunction method:
IsNLSDefinedString
CompareStringEx
LCMapStringEx
FindNLSStringEx
CompareStringOrdinal
GetNLSVersion
For information about these functions, see National Language Support Functions.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om