다음을 통해 공유


Referral.CheckValid Method

Checks that the referral statement is syntactically valid.

Namespace: Microsoft.Web.Services3.Referral
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim referral1 As Referral
referral1.CheckValid()

Syntax

'Declaration
Public Sub CheckValid()
public void CheckValid();
public:
void CheckValid();
public void CheckValid();
public function CheckValid() : Void;

Return Value

true if the referral statement is syntactically valid; otherwise, false.

Exceptions

Exception type Condition
ReferralFormatException

RefId , For , If , or Go is null.

-or-

Either both the Exact and Prefix elements of For are present, or both are null.

-or-

The Ttl sub-element of If is negative.

-or-

The Value sub-element of Via is null or has invalid http or https scheme.

-or-

RefId is equal to a Uri in the Rid child-element of the Invalidates sub-element of If.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

Referral Class
Referral Members
Microsoft.Web.Services3.Referral Namespace