System.Data.SqlTypes.SQLResource.InvalidOpStreamNonSeekable C# (CSharp) Метод

InvalidOpStreamNonSeekable() статический приватный Метод

static private InvalidOpStreamNonSeekable ( string method ) : string
method string
Результат string
        internal static string InvalidOpStreamNonSeekable(string method)
        {
            return SR.Format(SR.SqlMisc_InvalidOpStreamNonSeekable, method);
        }
    } // SqlResource

Usage Example

 private void ThrowIfStreamCannotSeek(string method)
 {
     if (!this.m_stream.CanSeek)
     {
         throw new NotSupportedException(SQLResource.InvalidOpStreamNonSeekable(method));
     }
 }