Share via


IDebugGenericParamField::GetFlags

Retrieves the flags for this generic parameter.

HRESULT GetFlags(
   DWORD* pdwFlags
);
int GetFlags(
   ref uint pdwFlags
);

Parameters

  • pdwFlags
    [out] Returns the flags for this generic parameter.

Return Value

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

Remarks

These flags contain information about various special constraints.

Example

The following example shows how to implement this method for a CDebugGenericParamFieldType object that exposes the IDebugGenericParamField interface.

HRESULT CDebugGenericParamFieldType::GetFlags(DWORD *pdwFlags)
{
    HRESULT hr = S_OK;

    METHOD_ENTRY( CDebugGenericParamFieldType::GetFlags );

    IfFalseGo( pdwFlags, E_INVALIDARG );
    IfFailGo( this->LoadProps() );
    *pdwFlags = m_dwFlags;

Error:

    METHOD_EXIT( CDebugGenericParamFieldType::GetFlags, hr );
    return hr;
}

See Also

Reference

IDebugGenericParamField