DefaultDllImportSearchPathsAttribute.Paths Property

.NET Framework (current version)
 

Gets a bitwise combination of enumeration values that specify the paths that the LoadLibraryEx function searches during platform invokes.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public DllImportSearchPath Paths { get; }

Property Value

Type: System.Runtime.InteropServices.DllImportSearchPath

A bitwise combination of enumeration values that specify search paths for platform invokes.

When the DefaultDllImportSearchPathsAttribute attribute is applied to an assembly, the paths are used by default to search for the targets of any platform invokes that are performed by code in the assembly. When the attribute is applied to an individual platform invoke, the paths are used to search for the target of the individual platform invoke and override the paths that are specified for the assembly.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: