Udostępnij za pośrednictwem


IVsContainedLanguageHost.InsertImportsDirective(UInt16) Method

Definition

Inserts a markup tag that imports the specified namespace.

public:
 int InsertImportsDirective(System::UInt16 % __MIDL_0011);
int InsertImportsDirective(unsigned short & __MIDL_0011);
public int InsertImportsDirective (ref ushort __MIDL_0011);
abstract member InsertImportsDirective : uint16 -> int
Public Function InsertImportsDirective (ByRef __MIDL_0011 As UShort) As Integer

Parameters

__MIDL_0011
UInt16

[in] A string specifying the fully qualified namespace to import.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Remarks

If this method is given a namespace such as "System.Web.UI" and this method is implemented by an editor that uses ASP.NET, then the following markup is inserted:

<%@import namespace="System.Web.UI" %>  

Applies to