QuotaDefinitionsManager.TryGetQuotaDefinition Method
Retreive a quota definition based on its name. the call is valied at all levels. For collection level, the account quota definition is returned(if the quota definition was overriden); otherwise the deployment level quota definition(it exists)
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function TryGetQuotaDefinition ( _
requestContext As TeamFoundationRequestContext, _
quotaName As String, _
<OutAttribute> ByRef quotaDefinition As QuotaDefinition _
) As Boolean
public bool TryGetQuotaDefinition(
TeamFoundationRequestContext requestContext,
string quotaName,
out QuotaDefinition quotaDefinition
)
public:
bool TryGetQuotaDefinition(
TeamFoundationRequestContext^ requestContext,
String^ quotaName,
[OutAttribute] QuotaDefinition^% quotaDefinition
)
member TryGetQuotaDefinition :
requestContext:TeamFoundationRequestContext *
quotaName:string *
quotaDefinition:QuotaDefinition byref -> bool
public function TryGetQuotaDefinition(
requestContext : TeamFoundationRequestContext,
quotaName : String,
quotaDefinition : QuotaDefinition
) : boolean
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
quotaName
Type: System.StringQuota name.
quotaDefinition
Type: Microsoft.TeamFoundation.Framework.Server.QuotaDefinition%The returned quota definition.
Return Value
Type: System.Boolean
Returns Boolean.
.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.