Partager via


IVsWCFObject.IsValid Method

Determines whether a Windows Communication Foundation (WCF) service reference object has been invalidated.

Namespace:  Microsoft.VisualStudio.WCFReference.Interop
Assembly:  Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)

Syntax

'Declaration
Function IsValid As Integer
int IsValid()
int IsValid()
abstract IsValid : unit -> int
function IsValid() : int

Return Value

Type: System.Int32
false if the object has been invalidated; otherwise true.

Remarks

The IsValid method returns false when the object has been invalidated, for example when the project is reloaded or when the object has been deleted from its parent collection.

.NET Framework Security

See Also

Reference

IVsWCFObject Interface

Microsoft.VisualStudio.WCFReference.Interop Namespace