DefaultDllImportSearchPathsAttribute.Paths 属性

定义

获取枚举值的按位组合,该值指定函数在平台调用期间搜索的路径 LoadLibraryEx

public:
 property System::Runtime::InteropServices::DllImportSearchPath Paths { System::Runtime::InteropServices::DllImportSearchPath get(); };
public System.Runtime.InteropServices.DllImportSearchPath Paths { get; }
member this.Paths : System.Runtime.InteropServices.DllImportSearchPath
Public ReadOnly Property Paths As DllImportSearchPath

属性值

枚举值的按位组合,指定平台调用的搜索路径。

注解

当属性 DefaultDllImportSearchPathsAttribute 应用于程序集时,默认使用路径来搜索程序集中代码执行的任何平台调用的目标。 当特性应用于单个平台调用时,路径用于搜索各个平台调用的目标,并重写为程序集指定的路径。

适用于