Share via


VersionedApiControllerCustomNameAttribute Constructor (String, String, Int32)

Specify a custom versioned API controller name that doesn't use the standard versioned API controller naming convention of: {Area}{ResourceName}[{ResourceVersion}]Controller. Note that all controller names must end with "Controller", even when using this attribute.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Sub New ( _
    area As String, _
    resourceName As String, _
    resourceVersion As Integer _
)
public VersionedApiControllerCustomNameAttribute(
    string area,
    string resourceName,
    int resourceVersion
)
public:
VersionedApiControllerCustomNameAttribute(
    String^ area, 
    String^ resourceName, 
    int resourceVersion
)
new : 
        area:string * 
        resourceName:string * 
        resourceVersion:int -> VersionedApiControllerCustomNameAttribute
public function VersionedApiControllerCustomNameAttribute(
    area : String, 
    resourceName : String, 
    resourceVersion : int
)

Parameters

  • resourceName
    Type: System.String

    Name of the resource handled by this controller

  • resourceVersion
    Type: System.Int32

    The minimum Resource version that this API controller supports

.NET Framework Security

See Also

Reference

VersionedApiControllerCustomNameAttribute Class

VersionedApiControllerCustomNameAttribute Overload

Microsoft.TeamFoundation.Framework.Server Namespace