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
area
Type: System.StringArea name (e.g. "VC", "Build", etc.)
resourceName
Type: System.StringName of the resource handled by this controller
resourceVersion
Type: System.Int32The minimum Resource version that this API controller supports
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
VersionedApiControllerCustomNameAttribute Class