IParameterCustomAttributeProviderContract.GetParameterCustomAttributes Method
This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.
Indirectly returns custom attributes that are defined on a parameter of a method.
Namespace: Microsoft.VisualStudio.Tools.Applications.Contract
Assembly: Microsoft.VisualStudio.Tools.Applications.Contract.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Contract.v9.0.dll)
Syntax
'Declaration
Function GetParameterCustomAttributes ( _
parameterIndex As Integer _
) As ICustomAttributeProviderContract
'Usage
Dim instance As IParameterCustomAttributeProviderContract
Dim parameterIndex As Integer
Dim returnValue As ICustomAttributeProviderContract
returnValue = instance.GetParameterCustomAttributes(parameterIndex)
ICustomAttributeProviderContract GetParameterCustomAttributes(
int parameterIndex
)
ICustomAttributeProviderContract^ GetParameterCustomAttributes(
int parameterIndex
)
function GetParameterCustomAttributes(
parameterIndex : int
) : ICustomAttributeProviderContract
Parameters
parameterIndex
Type: System.Int32The index of the parameter whose attributes to get.
Return Value
Type: Microsoft.VisualStudio.Tools.Applications.Contract.ICustomAttributeProviderContract
An ICustomAttributeProviderContract contract object that Visual Studio Tools for Applications can use to query for the custom parameter attributes.
Remarks
After obtaining the returned ICustomAttributeProviderContract contract object, Visual Studio Tools for Applications queries for custom parameter attributes by calling the GetCustomAttributes method of this contract object.
See Also
Reference
IParameterCustomAttributeProviderContract Interface
IParameterCustomAttributeProviderContract Members
Microsoft.VisualStudio.Tools.Applications.Contract Namespace