System.Data.SqlTypes.SQLResource.InvalidOpStreamNonReadable C# (CSharp) Method

InvalidOpStreamNonReadable() static private method

static private InvalidOpStreamNonReadable ( string method ) : string
method string
return string
        internal static string InvalidOpStreamNonReadable(string method)
        {
            return SR.Format(SR.SqlMisc_InvalidOpStreamNonReadable, method);
        }

Usage Example

 private void ThrowIfStreamCannotRead(string method)
 {
     if (!this.m_stream.CanRead)
     {
         throw new NotSupportedException(SQLResource.InvalidOpStreamNonReadable(method));
     }
 }