DataSiteableObject<T> Class

Provides a simplified way to support communication between an object and its site in the container.


Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

public class DataSiteableObject<T> : IVsDataSiteableObject<T>

Type Parameters


The type of the parameter.

The DataSiteableObject<T> type exposes the following members.

Public methodDataSiteableObject<T>()Creates a new instance of the DataSiteableObject<T> class.
Public methodDataSiteableObject<T>(T)Initializes a new instance of the DataSiteableObject<T> class, specifying a site generic type parameter.

Public propertySiteGets or sets the object site.

Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnSiteChangedRaises the SiteChanged event.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Public eventSiteChangedOccurs when the Site property is changed.

This class provides an event that is raised when the site is changed. This allows a client or any derived class to apply custom logic when changes occur to the object site.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft