DefaultDllImportSearchPathsAttribute.Paths 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取枚举值的按位组合,该值指定函数在平台调用期间搜索的路径 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 应用于程序集时,默认使用路径来搜索程序集中代码执行的任何平台调用的目标。 当特性应用于单个平台调用时,路径用于搜索各个平台调用的目标,并重写为程序集指定的路径。