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

InvalidOpStreamNonWritable() static private method

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

Usage Example

 private void ThrowIfStreamCannotWrite(string method)
 {
     if (!this.m_stream.CanWrite)
     {
         throw new NotSupportedException(SQLResource.InvalidOpStreamNonWritable(method));
     }
 }