Compartir a través de


IVsWCFObject Interface

Provides an interface for validating and reloading Windows Communication Foundation (WCF) service reference objects.

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

Syntax

'Declaration
<GuidAttribute("5E1F02CC-7A5F-4DB0-8D55-A05CC0A4AA56")> _
<InterfaceTypeAttribute()> _
Public Interface IVsWCFObject
[GuidAttribute("5E1F02CC-7A5F-4DB0-8D55-A05CC0A4AA56")]
[InterfaceTypeAttribute()]
public interface IVsWCFObject
[GuidAttribute(L"5E1F02CC-7A5F-4DB0-8D55-A05CC0A4AA56")]
[InterfaceTypeAttribute()]
public interface class IVsWCFObject
[<GuidAttribute("5E1F02CC-7A5F-4DB0-8D55-A05CC0A4AA56")>]
[<InterfaceTypeAttribute()>]
type IVsWCFObject =  interface end
public interface IVsWCFObject

The IVsWCFObject type exposes the following members.

Methods

  Name Description
Public method IsValid Determines whether a Windows Communication Foundation (WCF) service reference object has been invalidated.
Public method Reload Reloads a Windows Communication Foundation (WCF) service reference object.

Top

Remarks

Changes to WCF reference objects are persisted immediately. In cases where WCF reference data is updated externally, for example by changing the files on disk directly, objects may become invalid. You can make sure that objects are in sync with files on disk by calling the Reload method.

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.

Calling either method on an invalid object causes an error. There is no way to make an invalid object valid again.

See Also

Reference

Microsoft.VisualStudio.WCFReference.Interop Namespace