Export (0) Print
Expand All

ExtendedAttributeComponent Class

The extended attribute component connects to a database and reads or writes extended attributes. It does not use any installed objects to perform this task.

This component does not perform version checks because it is not connecting to a logical database, instead it is used to perform the validation in the higher level components.

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent
    Microsoft.TeamFoundation.Framework.Server.ExtendedAttributeComponent

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

public class ExtendedAttributeComponent : TeamFoundationSqlResourceComponent

The ExtendedAttributeComponent type exposes the following members.

  NameDescription
Public methodExtendedAttributeComponent(String)Do not use this constructor, it only used to verify our internal initialization database.
Public methodExtendedAttributeComponent(TeamFoundationRequestContext, String)
Top

  NameDescription
Protected propertyAuthorThe author is defined as the source of the change that caused the notification. See Author for more information. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyBoundParametersReturns the number of currently bound parameters. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyCommandThe SQL command that is used by the SqlResourceComponent. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyCommandTextSql text for the current command. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyCommandTimeoutThe CommandTimeout used for all executions unless otherwise specified for a given command. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyConnectionThe SqlConnection used by this TeamFoundationSqlResourceComponent. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyConnectionStringThe connection string (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyContainerErrorCodeRead and Write the container error code for this component. (Inherited from TeamFoundationSqlResourceComponent.)
Public propertyDatabaseCategoryRead database category. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyDataReaderThe SqlDataReader returned by the last SqlCommand execute. (Inherited from TeamFoundationSqlResourceComponent.)
Public propertyDataSourceGets the name or network address of the instance of SQL Server to connect to. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyDeadlockPauseNumber of milliseconds to pause before retrying after a deadlock occurs. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyExecutionTimeThresholdAt which time do we trace this call (Inherited from TeamFoundationSqlResourceComponent.)
Public propertyInitialCatalogGets the name of the database associated with the component. (Inherited from TeamFoundationSqlResourceComponent.)
Public propertyIsSqlAzureReturns true if component is used against SQL Azure. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyLoggingOptionsControls whether TIME and IO statistics (or other information message output) should be collected and logged. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyMaxDeadlockRetriesMaximum number of times to retry the operation if a deadlock occurs. (Inherited from TeamFoundationSqlResourceComponent.)
Public propertyPartitionIdThe id of the partition this component is associated with. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyPerformanceOptionsWhether or not to obtain context information, and how much to throttle. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyProcedureNameName of the procedure currently being executed. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyRequestContextThe request context of the current request. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertySelectedFeaturesSelected SQL resource component options. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyStatementIndexIndex used by the last AddStatement. -1 if AddStatement has not been called. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyTraceAreaCan be used in trace definitions to filter tracing to a specific area. (Inherited from TeamFoundationSqlResourceComponent.)
Protected propertyTranslatedExceptionsRequests the set of SqlExceptions that can be translated to local exceptions by using a SqlExceptionFactory. (Inherited from TeamFoundationSqlResourceComponent.)
Public propertyVersionThe version of the service's schema (Inherited from TeamFoundationSqlResourceComponent.)
Top

  NameDescription
Protected methodAddStatement(String)Add a statement to the current SQL batch. You must call PrepareSqlBatch before you call AddStatement. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodAddStatement(String, Int32)Add a statement to the current SQL batch. You must call PrepareSqlBatch before you call AddStatement. If the number of parameters that will be added by using this statement will exceed the maximum number of allowed parameters in a single SQL batch, the statements that are already part of the batch will be executed, and then a new batch will begin with the statement that's being added. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodAddStatement(String, Int32, Boolean)Add a statement to the current SQL batch. You must call PrepareSqlBatch before you call AddStatement. If the number of parameters that will be added by using this statement will exceed the maximum number of allowed parameters in a single SQL batch, the statements that are already part of the batch will be executed, and then a new batch will begin with the statement that's being added. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodAddStatement(String, Int32, Boolean, Boolean)Add a statement to the current SQL batch. You must call PrepareSqlBatch before you call AddStatement. If the number of parameters that will be added by using this statement will exceed the maximum number of allowed parameters in a single SQL batch, the statements that are already part of the batch will be executed, and then a new batch will begin with the statement that's being added. (Inherited from TeamFoundationSqlResourceComponent.)
Public methodBeginTransactionUsed to wrap several calls in a single transaction. All executes on this component will be in the transaction until Commit or RollBack are called. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindBinary(String, Byte[], SqlDbType)This is a helper function that handles binding a binary value to a SqlParameter. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindBinary(String, Byte[], Int32, SqlDbType)A helper function that handles binding a binary value to a sqlparameter. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindBooleanA helper function that handles binding a Boolean or a bit value to a sqlparameter. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindByte(String, Byte)A helper function that handles binding an 8-bit value to its sqlparameters. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindByte(String, Byte, Byte)A helper function that handles binding an 8-bit value that might be null to its sqlparameters. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindDateTimeA helper function that handles binding a date/time value to a sqlparameter. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindDefaultA helper function that handles binding a value to default type. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindDoubleThis is a helper function that takes care of binding 32 bit value to their sqlparameters. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindGuidThis is a helper function that handles binding GUIDs to their sqlparameters. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindIntA helper function that handles binding a 32-bit value to its sqlparameters. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindLongA helper function that handles binding a 64-bit value to its sqlparameters. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindNullableBooleanThis is a helper function that takes care of binding boolean or a bit value to a sqlparameter. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindNullableByteThis is a helper function that handles binding an 8-bit value to its SqlParameters. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindNullableDateTimeThis is a helper function that takes care of binding a date/time value to a sqlparameter. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindNullableGuidA helper function that handles binding GUIDs to their sqlparameters. The value Empty is considered NULL and a NULL is bound to the given parameter. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindNullableIntIf parameterValue == nullValue, a NULL is bound to the given parameter. Otherwise, parameterValue is bound as a 32-bit integer. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindNullableShortIf parameterValue == nullValue, a NULL is bound to the given parameter. Otherwise, parameterValue is bound as a 16-bit integer (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindNullValueThis is a generic binding helper that builds a specific parameter typed null value. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindShortThis is a helper function that handles binding 16 bit value to their sqlparameters. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindString(String, String, Int32, BindStringBehavior, SqlDbType)This is a helper function that handles binding strings to their SqlParameters. It makes sure that null values are correctly handled. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindString(String, String, Int32, Boolean, SqlDbType)This is a helper function that handles binding strings to their SqlParameters.It makes sure that null values are correctly handled. This is the old version of this method; use the overload that takes a BindStringBehavior to be more explicit about how null and empty strings are to be handled. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindSysnameA helper function that handles binding sysname strings to their sqlparameters. It makes sure null values are correctly set up. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindTable<T>Binds a table. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindVariant (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindXml(String, TeamFoundationDatabaseXmlWriter)Used to bind an XML document to an XML parameter. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodBindXml(String, String)Used to bind an XML document to an XML parameter. (Inherited from TeamFoundationSqlResourceComponent.)
Public methodCancel (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodCanRetryOnExceptionIndicates whether the SQL exception can be retried. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodCanRetryOnSqlError (Inherited from TeamFoundationSqlResourceComponent.)
Public methodCommitTransactionCommit the transaction that is active for this component. (Inherited from TeamFoundationSqlResourceComponent.)
Public methodDeleteDatabaseAttributeDeletes an extended property.
Public methodDispose (Inherited from TeamFoundationSqlResourceComponent.)
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodExecuteInternal helper that encapsulates the logic for ExecuteReader and ExecuteNonQuery. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodExecuteNonQuery()Executes the current SQL command and does not produce a result set. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodExecuteNonQuery(Boolean)Executes the current SQL command and does not produce a result set. The only result is the Return Value, which is a single scalar value. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodExecuteReader()Overload using default command behavior. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodExecuteReader(CommandBehavior)Executes the current SQL command and returns a reader. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodExecuteScalarExecute the current SQL command by using ExecuteScalar and stores the result. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodExecuteUnknown(Object)Executes the current SQL command by using ExecuteUnknown() and returns the object. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodExecuteUnknown(SqlDataReader, Object)The method that is used by ExecuteUnknown() to populate an object based on a reader caller of ExecuteUnknown must override this method. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected methodFlushBatchFlushes the batch that is pended to this point and creates a new batch so that users may call AddStatement again. (Inherited from TeamFoundationSqlResourceComponent.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Protected methodGetParameterNameHelper method to format a parameter name. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodGetSqlErrorNumberAsStringHelper that returns all the error numbers in a string for tracing purposes It's not super efficient but should only be called in case SQL is having issues which *should* be rare. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodGetSqlErrorNumbersHelper that returns all the error numbers contained in a sql exception object (Inherited from TeamFoundationSqlResourceComponent.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodHandleCustomExceptionHandle custom exceptions. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodHandleExceptionDetermine whether the SQL exception can be handled; SQL exceptions that cannot be retried or mapped are "unhandled." (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodInitialize(String)Initializes a component. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodInitialize(TeamFoundationRequestContext, String, Int32) (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodInitialize(String, Int32, Int32, Int32, Int32)Initializes a component. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodMapException(SqlException)Map a SQL exception into an application-specific exception, if it is possible. Otherwise, the exception is reported using Watson. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodMapException(SqlException, QueryExecutionState)Map a SQL exception into an application-specific exception, if it is possible. Otherwise, the exception is reported using Watson. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodPrepareConnectionStringAllows derived classes to update connection string. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodPrepareSqlBatch(Int32)Setup to execute a batch of SQL statements. This method will close all existing commands or readers. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodPrepareSqlBatch(Int32, Boolean)Setup to execute a batch of SQL statements. This method will close all existing command or reader. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodPrepareStoredProcedure(String)Setup to execute a SQL stored procedure. This method will close all existing commands or readers. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodPrepareStoredProcedure(String, Boolean)Setup to execute a SQL Server stored procedure. This method will close all existing command or reader. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodPrepareStoredProcedure(String, Int32)Setup to execute a SQL stored procedure. This method will close all existing commands or readers. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodPrepareStoredProcedure(String, Boolean, Int32)Setup to execute a SQL Server stored procedure. This method will close all existing command or reader. (Inherited from TeamFoundationSqlResourceComponent.)
Public methodReadDatabaseAttribute
Public methodReadDatabaseAttributes
Public methodReadServiceLevelStampReads TFS_SERVICE_LEVEL stamp
Public methodReadServiceLevelToStampReads TFS_SERVICE_LEVEL_TO stamp
Protected methodReleaseVerificationLock (Inherited from TeamFoundationSqlResourceComponent.)
Public methodRenameDatabaseAttribute
Public methodRollbackTransactionRoll back and discard all changes that were made during the transaction on this component. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodSleep (Inherited from TeamFoundationSqlResourceComponent.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodTrace(Int32, TraceLevel, String, Object[])Push trace messages to the trace service associated with the request context. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodTrace(Int32, TraceLevel, String[], String, Object[])Push trace messages to the trace service associated with the request context. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodTraceEnterTrace entry to a method with a consistently formatted message and a time stamp. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodTraceExceptionReport an exception at TraceLevel.Error to the trace log in a consistent way. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodTraceLeaveTrace exit from a method with a consistently formatted message and a time stamp. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodTranslateExceptionExamines a SQL Type Exception and transforms it into a more significant one.The default behavior is to do nothing; that is, it is to rethrow the original exception.WIT is the only component that currently overrides the current behavior. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodVerifyInitializedThrows an InvalidOperationException if the component is not initialized. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodVerifyInMasterDbOnAzureThrows InvalidOperationException if components is used against SQL Azure and the Initial Catalog in the connection string is not master or empty. (Inherited from TeamFoundationSqlResourceComponent.)
Protected methodVerifyNotSqlAzureThrows NotSupportedException if components are used against SQL Azure. (Inherited from TeamFoundationSqlResourceComponent.)
Public methodVerifyServiceVersion(String, Int32, Int32, Int32)Connects to the database, takes a shared session lock on the TfsDb resource and verifies that the database supports specified service version.NOTE: This method will be re-written. We must query CONTEXT_INFO(), take a shared lock and query database service version using one query. In addition, we must make sure that the database still supports current component in case we lost connection to the database. (Inherited from TeamFoundationSqlResourceComponent.)
Public methodVerifyServiceVersion(String, Int32, Int32, Int32, Boolean)This method connects to the database, takes a shared or exclusive session lock on the TfsDb resource and verifies that the database supports specified service version. NOTE: This method will be re-written. We must query CONTEXT_INFO(), take a shared lock and query database service version using one query. In addition, we must ensure that the database still supports current component in case we lost connection to the database. (Inherited from TeamFoundationSqlResourceComponent.)
Public methodWriteDatabaseAttribute
Top

  NameDescription
Public eventInfoMessageExposes the internal InfoMessage event of the SqlConnection. Occurs when SQL Server returns a warning or informational message. (Inherited from TeamFoundationSqlResourceComponent.)
Top

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