Share via


DataBus Class

Represents the DataBus class.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Data.DataBus

Namespace:  Microsoft.SqlServer.Management.Data
Assembly:  Microsoft.SqlServer.Management.SDK.SqlStudio (in Microsoft.SqlServer.Management.SDK.SqlStudio.dll)

Syntax

'Declaration
Public Class DataBus _
    Implements IDataBus, ISfcPropertySet, ISfcPropertyProvider, ISfcNotifyPropertyMetadataChanged,  _
    INotifyPropertyChanged, ICollection, IEnumerable, IDisposable, ICustomTypeDescriptor
'Usage
Dim instance As DataBus
public class DataBus : IDataBus, ISfcPropertySet, 
    ISfcPropertyProvider, ISfcNotifyPropertyMetadataChanged, INotifyPropertyChanged, ICollection, IEnumerable, 
    IDisposable, ICustomTypeDescriptor
public ref class DataBus : IDataBus, 
    ISfcPropertySet, ISfcPropertyProvider, ISfcNotifyPropertyMetadataChanged, INotifyPropertyChanged, ICollection, 
    IEnumerable, IDisposable, ICustomTypeDescriptor
type DataBus =  
    class
        interface IDataBus
        interface ISfcPropertySet
        interface ISfcPropertyProvider
        interface ISfcNotifyPropertyMetadataChanged
        interface INotifyPropertyChanged
        interface ICollection
        interface IEnumerable
        interface IDisposable
        interface ICustomTypeDescriptor
    end
public class DataBus implements IDataBus, ISfcPropertySet, ISfcPropertyProvider, ISfcNotifyPropertyMetadataChanged, INotifyPropertyChanged, ICollection, IEnumerable, IDisposable, ICustomTypeDescriptor

The DataBus type exposes the following members.

Constructors

  Name Description
Public method DataBus Initializes a new instance of the DataBus class.

Top

Properties

  Name Description
Public property Count Gets the number of data in a data bus.
Public property IsSynchronized Gets a value indicating whether the data in a DataBus control is synchronized.
Public property Item Gets or sets the property value in the DataBus control.
Public property SyncRoot Gets an object that can be used to synchronize data to the DataBus control.

Top

Methods

  Name Description
Public method Add(ISfcProperty) Adds a property with specified metadata and value to the collection. This class cannot be inherited.
Public method Add(ISfcPropertyProvider) Adds all properties from the provider. This class cannot be inherited.
Public method Add(String, ISfcPropertyProvider) Adds a property with specified name and property provider. This class cannot be inherited.
Public method Add(ISfcProperty, ISfcPropertyProvider) Adds property metadata, a value, and a property provider. This class cannot be inherited.
Public method Add<T>(String, T) Adds a property with specified name and type. This class cannot be inherited.
Public method Add<T>(String, T, Boolean) Adds a property with specified name and type. This class cannot be inherited.
Public method Contains(String) Checks if the property with specified name exists. This class cannot be inherited.
Public method Contains(ISfcProperty) Checks if the property with specified metadata and value exists. This class cannot be inherited.
Public method Contains<T>(String) Checks if the property with specified name exists.
Public method CopyTo Copies the items of a DataBus control to a one-dimensional array, starting at the given array index.
Public method Dispose() Releases all the resources used by the DataBus class.
Protected method Dispose(Boolean) Releases the unmanaged resources used by the DataBus and optionally releases the managed resources.
Public method EnumProperties Specifies all the properties.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetAttributes Indicates the collection of attributes from data in the DataBus control.
Public method GetClassName Returns the name of the class for the DataBus control.
Public method GetComponentName Returns the name of the component for the DataBus control.
Public method GetConverter Returns a type converter for the DataBus control.
Public method GetDefaultEvent Returns the default event for the DataBus control.
Public method GetDefaultProperty Returns the default property for the DataBus control.
Public method GetEditor Gets the type of an editor for the DataBus control.
Public method GetEnumerator Returns an IEnumerator interface for the DataBus control.
Public method GetEvents() Returns the events for the DataBus control.
Public method GetEvents(array<Attribute[]) Returns a filtered collection of event descriptors for the DataBus control.
Public method GetHashCode (Inherited from Object.)
Public method GetProperties() Returns a collection of property descriptors for the DataBus control.
Public method GetProperties(array<Attribute[]) Returns the properties for the DataBus control using the attribute array as a filter.
Public method GetPropertyOwner Returns an object that contains the property described by the specified property descriptor.
Public method GetPropertySet Retrieves the set of properties of the data bus.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(String) Removes the specified name of the property of the data bus.
Public method Remove(ISfcProperty) Removes a property with specified metadata and value from the collection.
Public method Remove(ISfcPropertyProvider) Removes the specified provider for all properties.
Public method Remove(String, ISfcPropertyProvider) Removes the specified provider for the property from the Data Bus control.
Public method ToString (Inherited from Object.)
Public method TryGetProperty Gets the property that is associated with the specified key.
Public method TryGetPropertyValue(String, Object%) Attempts to get the property value with a specified name and value.
Public method TryGetPropertyValue<T>(String, T%) Attempts to get the property value with a specified name and type.

Top

Events

  Name Description
Public event PropertyChanged Occurs when the property value of the DataBus control changes.
Public event PropertyMetadataChanged Occurs when the metadata property value of the DataBus control changes.

Top

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.