ITypeLibInfo.Location 属性

定义

获取或设置一个字符串,该字符串包含指定类型库项的位置。

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

属性值

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;  
}  

适用于