Share via


DataSiteableObject<T> Class

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.Framework.DataSiteableObject<T>
    More...

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

Syntax

'Declaration
Public Class DataSiteableObject(Of T) _
    Implements IVsDataSiteableObject(Of T)
public class DataSiteableObject<T> : IVsDataSiteableObject<T>
generic<typename T>
public ref class DataSiteableObject : IVsDataSiteableObject<T>
type DataSiteableObject<'T> =  
    class
        interface IVsDataSiteableObject<'T>
    end
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of the parameter.

The DataSiteableObject<T> type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property Site Gets or sets the object site.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnSiteChanged Raises the SiteChanged event.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event SiteChanged Occurs when the Site property is changed.

Top

Remarks

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.

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.

See Also

Reference

Microsoft.VisualStudio.Data.Framework Namespace

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.Framework.DataSiteableObject<T>
    Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetConnectionProperties
    Microsoft.VisualStudio.Data.Framework.DataAsyncCommand
    Microsoft.VisualStudio.Data.Framework.DataCommand
    Microsoft.VisualStudio.Data.Framework.DataConnectionEquivalencyComparer
    Microsoft.VisualStudio.Data.Framework.DataMappedObjectConverter
    Microsoft.VisualStudio.Data.Framework.DataObjectIdentifierConverter
    Microsoft.VisualStudio.Data.Framework.DataObjectIdentifierResolver
    Microsoft.VisualStudio.Data.Framework.DataObjectMemberComparer
    Microsoft.VisualStudio.Data.Framework.DataObjectSelector
    Microsoft.VisualStudio.Data.Framework.DataProviderObjectFactory
    Microsoft.VisualStudio.Data.Framework.DataSourceInformation
    Microsoft.VisualStudio.Data.Framework.DataSourceVersionComparer
    Microsoft.VisualStudio.Data.Framework.DataTransaction
    Microsoft.VisualStudio.Data.Framework.DataViewBrowseObjectProvider
    Microsoft.VisualStudio.Data.Framework.DataViewCommandProvider
    Microsoft.VisualStudio.Data.Framework.DataViewDocumentProvider
    Microsoft.VisualStudio.Data.Framework.DSRefBuilder