共用方式為


IVsUserContext.GetPriority(Int32) Method

Definition

Determines the priority of an attribute or keyword in the context or subcontext bag.

public:
 int GetPriority([Runtime::InteropServices::Out] int % lPriority);
int GetPriority([Runtime::InteropServices::Out] int & lPriority);
public int GetPriority (out int lPriority);
abstract member GetPriority : int -> int
Public Function GetPriority (ByRef lPriority As Integer) As Integer

Parameters

lPriority
Int32

[out] Priority of the attribute or keyword. For a list of lPriority values, see VSUSERCONTEXTPRIORITY.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From context.idl:

HRESULT IVsUserContext::GetPriority(  
   [out, retval] int *lPriority  
);  

This method returns an integer value that corresponds to the priority of the context item. Compare this value with the string values of the VSUSERCONTEXTPRIORITY enumeration.

Applies to