Compartilhar via


Método ReportSize.TryParse (String, Boolean, ReportSize%)

Attempts to parse a string value into a ReportSize.

Namespace:  Microsoft.ReportingServices.OnDemandReportRendering
Assembly:  Microsoft.ReportingServices.ProcessingCore (em Microsoft.ReportingServices.ProcessingCore.dll)

Sintaxe

'Declaração
Public Shared Function TryParse ( _
    value As String, _
    allowNegative As Boolean, _
    <OutAttribute> ByRef reportSize As ReportSize _
) As Boolean
'Uso
Dim value As String 
Dim allowNegative As Boolean 
Dim reportSize As ReportSize 
Dim returnValue As Boolean 

returnValue = ReportSize.TryParse(value, _
    allowNegative, reportSize)
public static bool TryParse(
    string value,
    bool allowNegative,
    out ReportSize reportSize
)
public:
static bool TryParse(
    String^ value, 
    bool allowNegative, 
    [OutAttribute] ReportSize^% reportSize
)
static member TryParse : 
        value:string * 
        allowNegative:bool * 
        reportSize:ReportSize byref -> bool
public static function TryParse(
    value : String, 
    allowNegative : boolean, 
    reportSize : ReportSize
) : boolean

Parâmetros

  • allowNegative
    Tipo: System.Boolean
    Whether to allow a negative value in value.

Valor de retorno

Tipo: System.Boolean
true if the attempt is successful; otherwise, false.

Consulte também

Referência

ReportSize Classe

Sobrecarregado TryParse

Namespace Microsoft.ReportingServices.OnDemandReportRendering