ITypeLibInfo.Location 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个字符串,该字符串包含指定类型库项的位置。
public:
property System::String ^ Location { System::String ^ get(); void set(System::String ^ value); };
public:
property Platform::String ^ Location { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(1610743810)]
public string Location { [System.Runtime.InteropServices.DispId(1610743810)] get; [System.Runtime.InteropServices.DispId(1610743810)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FRestricted)] set; }
[<System.Runtime.InteropServices.DispId(1610743810)>]
[<get: System.Runtime.InteropServices.DispId(1610743810)>]
[<set: System.Runtime.InteropServices.DispId(1610743810)>]
[<set: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FRestricted)>]
member this.Location : string with get, set
Public Property Location As String
属性值
一个包含指定项的位置的字符串。
- 属性
示例
// From the VC++ ImplementInterface wizard.
function AddTypeLibOptionIndex(oTypeLibsSelect, iTypeLib, oTypeLib, strVersion)
{
var oOption = oTypeLibsSelect.options(iTypeLib - 1);
oOption.text = oTypeLib.Name + "<" + (strVersion.length ? strVersion : "1.0") + ">";
oOption.value = oTypeLib.Location;
}