Share 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
'Usage
Dim instance As IVsWCFObject 
Dim returnValue As Integer 

returnValue = instance.IsValid()
int IsValid()
int IsValid()
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

IVsWCFObject Members

Microsoft.VisualStudio.WCFReference.Interop Namespace