Share via


IDebugGenericParamField::GetFlags

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Retrieves the flags for this generic parameter.

Syntax

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