當前位置: 首頁>>代碼示例>>C#>>正文


C# Server.SmiEventSink類代碼示例

本文整理匯總了C#中Microsoft.SqlServer.Server.SmiEventSink的典型用法代碼示例。如果您正苦於以下問題:C# SmiEventSink類的具體用法?C# SmiEventSink怎麽用?C# SmiEventSink使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SmiEventSink類屬於Microsoft.SqlServer.Server命名空間,在下文中一共展示了SmiEventSink類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: GetBytesLength

 // valid for SqlDbTypes: Binary, VarBinary, Image, Udt, Xml, Char, VarChar, Text, NChar, NVarChar, NText
 //  (Character type support needed for ExecuteXmlReader handling)
 public virtual Int64 GetBytesLength(SmiEventSink sink, int ordinal) {
     if (!CanGet) {
         throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall);
     }
     else {
         throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod);
     }
 }
開發者ID:iskiselev,項目名稱:JSIL.NetFramework,代碼行數:10,代碼來源:SmiTypedGetterSetter.cs

示例2: GetVariantType

 // Check what type current sql_variant value is
 //      valid for SqlDbType.Variant
 public virtual SmiMetaData GetVariantType(SmiEventSink sink, int ordinal) {
     if (!CanGet) {
         throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall);
     }
     else {
         throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod);
     }
 }
開發者ID:iskiselev,項目名稱:JSIL.NetFramework,代碼行數:10,代碼來源:SmiTypedGetterSetter.cs

示例3: GetCharsLength

 public virtual long GetCharsLength(SmiEventSink sink, int ordinal)
 {
     if (!this.CanGet)
     {
         throw ADP.InternalError(ADP.InternalErrorCode.InvalidSmiCall);
     }
     throw ADP.InternalError(ADP.InternalErrorCode.UnimplementedSMIMethod);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:8,代碼來源:SmiTypedGetterSetter.cs

示例4: GetDateTimeOffset

 public virtual DateTimeOffset GetDateTimeOffset(SmiEventSink sink, int ordinal)
 {
     if (!this.CanGet)
     {
         throw ADP.InternalError(ADP.InternalErrorCode.InvalidSmiCall);
     }
     throw ADP.InternalError(ADP.InternalErrorCode.UnimplementedSMIMethod);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:8,代碼來源:SmiTypedGetterSetter.cs

示例5: GetChars

 public virtual int GetChars(SmiEventSink sink, int ordinal, long fieldOffset, char[] buffer, int bufferOffset, int length)
 {
     if (!this.CanGet)
     {
         throw ADP.InternalError(ADP.InternalErrorCode.InvalidSmiCall);
     }
     throw ADP.InternalError(ADP.InternalErrorCode.UnimplementedSMIMethod);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:8,代碼來源:SmiTypedGetterSetter.cs

示例6: GetBoolean

 public virtual bool GetBoolean(SmiEventSink sink, int ordinal)
 {
     if (!this.CanGet)
     {
         throw ADP.InternalError(ADP.InternalErrorCode.InvalidSmiCall);
     }
     throw ADP.InternalError(ADP.InternalErrorCode.UnimplementedSMIMethod);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:8,代碼來源:SmiTypedGetterSetter.cs

示例7: EndElements

 internal virtual void EndElements(SmiEventSink sink)
 {
     if (!this.CanSet)
     {
         throw ADP.InternalError(ADP.InternalErrorCode.InvalidSmiCall);
     }
     throw ADP.InternalError(ADP.InternalErrorCode.UnimplementedSMIMethod);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:8,代碼來源:SmiTypedGetterSetter.cs

示例8: GetBytes

 public virtual int GetBytes(SmiEventSink sink, int ordinal, long fieldOffset, byte[] buffer, int bufferOffset, int length) {
     if (!CanGet) {
         throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall);
     }
     else {
         throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod);
     }
 }
開發者ID:iskiselev,項目名稱:JSIL.NetFramework,代碼行數:8,代碼來源:SmiTypedGetterSetter.cs

示例9: GetScratchStream

        // Scratch LOB storage region
        internal virtual SmiStream GetScratchStream( SmiEventSink sink ) {
            // Adding as of V3

            // Implement body with throw because there are only a couple of ways to get to this code:
            //  1) Client is calling this method even though the server negotiated for V2- and hasn't implemented V3 yet.
            //  2) Server didn't implement V3, but negotiated V3+.
            System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
            return null;
        }
開發者ID:nlh774,項目名稱:DotNetReferenceSource,代碼行數:10,代碼來源:SmiContext.cs

示例10: SqlDataReaderSmi

 internal SqlDataReaderSmi(SmiEventStream eventStream, SqlCommand parent, CommandBehavior behavior, SqlInternalConnectionSmi connection, SmiEventSink parentSink) : base(parent, behavior)
 {
     this._eventStream = eventStream;
     this._currentConnection = connection;
     this._readerEventSink = new ReaderEventSink(this, parentSink);
     this._currentPosition = PositionState.BeforeResults;
     this._isOpen = true;
     this._indexMap = null;
     this._visibleColumnCount = 0;
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:10,代碼來源:SqlDataReaderSmi.cs

示例11: Close

        public virtual void Close(
            SmiEventSink        eventSink
        ) {
            // Adding as of V3

            // Implement body with throw because there are only a couple of ways to get to this code:
            //  1) Client is calling this method even though the server negotiated for V2- and hasn't implemented V3 yet.
            //  2) Server didn't implement V3 on some interface, but negotiated V3+.
            throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
        }
開發者ID:uQr,項目名稱:referencesource,代碼行數:10,代碼來源:SmiRequestExecutor.cs

示例12: SetVariantMetaData

        public virtual void SetVariantMetaData( SmiEventSink sink, int ordinal, SmiMetaData metaData ) {
            // ******** OBSOLETING from SMI -- this should have been removed from ITypedSettersV3
            //  Intended to be removed prior to RTM.  Sub-classes need not implement

            // Implement body with throw because there are only a couple of ways to get to this code:
            //  1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
            //  2) Server didn't implement V2- on some interface and negotiated V2-.
            throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
        }
開發者ID:iskiselev,項目名稱:JSIL.NetFramework,代碼行數:9,代碼來源:SmiTypedGetterSetter.cs

示例13: SetDateTimeOffset

 // valid for DateTimeOffset
 public virtual void SetDateTimeOffset(SmiEventSink sink, int ordinal, DateTimeOffset value) {
     if (!CanSet) {
         throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall);
     } else {
         throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod);
     }
 }
開發者ID:iskiselev,項目名稱:JSIL.NetFramework,代碼行數:8,代碼來源:SmiTypedGetterSetter.cs

示例14: SetString

 // valid for character types: Char, VarChar, Text, NChar, NVarChar, NText
 public virtual void SetString(SmiEventSink sink, int ordinal, string value, int offset, int length) {
     if (!CanSet) {
         throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall);
     }
     else {
         throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod);
     }
 }
開發者ID:iskiselev,項目名稱:JSIL.NetFramework,代碼行數:9,代碼來源:SmiTypedGetterSetter.cs

示例15: SetCharsLength

 public virtual void SetCharsLength(SmiEventSink sink, int ordinal, long length) {
     if (!CanSet) {
         throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall);
     }
     else {
         throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod);
     }
 }
開發者ID:iskiselev,項目名稱:JSIL.NetFramework,代碼行數:8,代碼來源:SmiTypedGetterSetter.cs


注:本文中的Microsoft.SqlServer.Server.SmiEventSink類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。