当前位置: 首页>>代码示例>>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;未经允许,请勿转载。