Microsoft csharp runtimebinder runtimebinderexception

Runtime Binder Exception Constructors

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Initializes a new instance of the RuntimeBinderException class.

Overloads

Initializes a new instance of the RuntimeBinderException class.

Initializes a new instance of the RuntimeBinderException class that has a specified error message.

Initializes a new instance of the RuntimeBinderException class that has serialized data.

Initializes a new instance of the RuntimeBinderException class that has a specified error message and a reference to the inner exception that is the cause of this exception.

RuntimeBinderException()

Initializes a new instance of the RuntimeBinderException class.

public: RuntimeBinderException();
public RuntimeBinderException ();

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as «DefaultMessageDisplayedByParameterlessCtorWriterMustSupply» This message takes into account the current system culture.

The following table shows the initial property values for an instance of InsufficientMemoryException.

Property Value
InnerException null .
Message The localized error message string.

See also

Applies to

RuntimeBinderException(String)

Initializes a new instance of the RuntimeBinderException class that has a specified error message.

public: RuntimeBinderException(System::String ^ message);
public RuntimeBinderException (string message);
public RuntimeBinderException (string? message);
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : string -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
Public Sub New (message As String)

Parameters

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Remarks

The following table shows the initial property values for an instance of RuntimeBinderException.

Property Value
InnerException null .
Message The error message string specified in message .

See also

Applies to

RuntimeBinderException(SerializationInfo, StreamingContext)

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Initializes a new instance of the RuntimeBinderException class that has serialized data.

protected: RuntimeBinderException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected RuntimeBinderException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/")] protected RuntimeBinderException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
[] new Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

The object that holds the serialized object data about the exception being thrown.

The contextual information about the source or destination.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

Applies to

RuntimeBinderException(String, Exception)

Initializes a new instance of the RuntimeBinderException class that has a specified error message and a reference to the inner exception that is the cause of this exception.

public: RuntimeBinderException(System::String ^ message, Exception ^ innerException);
public RuntimeBinderException (string message, Exception innerException);
public RuntimeBinderException (string? message, Exception? innerException);
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : string * Exception -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
Public Sub New (message As String, innerException As Exception)

Parameters

The error message that explains the reason for the exception.

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

The following table shows the initial property values for an instance of RuntimeBinderException.

Property Value
InnerException null .
Message The error message string specified in message .

Источник

Runtime Binder Exception Класс

Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.

Представляет ошибку, которая возникает при обработке динамической привязки в модуле привязки времени выполнения C#.

public ref class RuntimeBinderException : Exception
public class RuntimeBinderException : Exception
[System.Serializable] public class RuntimeBinderException : Exception
type RuntimeBinderException = class inherit Exception
[] type RuntimeBinderException = class inherit Exception
Public Class RuntimeBinderException Inherits Exception

Комментарии

Исключения такого рода отличаются от RuntimeBinderInternalCompilerException того, что RuntimeBinderException представляет сбой привязки в смысле обычной ошибки компилятора, тогда как RuntimeBinderInternalCompilerException представляет сбой самого связывателя среды выполнения.

Конструкторы

Инициализирует новый экземпляр класса RuntimeBinderException.

Инициализирует новый экземпляр класса RuntimeBinderException, содержащий сериализованные данные.

Инициализирует новый экземпляр класса RuntimeBinderException, содержащий указанное сообщение об ошибке.

Инициализирует новый экземпляр класса RuntimeBinderException, содержащий указанное сообщение об ошибке и ссылку на внутреннее исключение, которое стало причиной данного исключения.

Свойства

Возвращает коллекцию пар «ключ-значение», предоставляющую дополнительные сведения об исключении.

Получает или задает ссылку на файл справки, связанный с этим исключением.

Возвращает или задает HRESULT — кодированное числовое значение, присвоенное определенному исключению.

Возвращает экземпляр класса Exception, который вызвал текущее исключение.

Возвращает сообщение, описывающее текущее исключение.

Возвращает или задает имя приложения или объекта, вызывавшего ошибку.

Получает строковое представление непосредственных кадров в стеке вызова.

Возвращает метод, создавший текущее исключение.

Методы

Определяет, равен ли указанный объект текущему объекту.

При переопределении в производном классе возвращает исключение Exception, которое является первопричиной одного или нескольких последующих исключений.

Служит хэш-функцией по умолчанию.

При переопределении в производном классе задает объект SerializationInfo со сведениями об исключении.

Возвращает тип среды выполнения текущего экземпляра.

Создает неполную копию текущего объекта Object.

Создает и возвращает строковое представление текущего исключения.

События

Возникает, когда исключение сериализовано для создания объекта состояния исключения, содержащего сериализованные данные об исключении.

Источник

Runtime Binder Exception Class

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Represents an error that occurs when a dynamic bind in the C# runtime binder is processed.

public ref class RuntimeBinderException : Exception
public class RuntimeBinderException : Exception
[System.Serializable] public class RuntimeBinderException : Exception
type RuntimeBinderException = class inherit Exception
[] type RuntimeBinderException = class inherit Exception
Public Class RuntimeBinderException Inherits Exception

Remarks

Exceptions of this kind differ from RuntimeBinderInternalCompilerException in that RuntimeBinderException represents a failure to bind in the sense of a usual compiler error, whereas RuntimeBinderInternalCompilerException represents a malfunctioning of the runtime binder itself.

Constructors

Initializes a new instance of the RuntimeBinderException class.

Initializes a new instance of the RuntimeBinderException class that has serialized data.

Initializes a new instance of the RuntimeBinderException class that has a specified error message.

Initializes a new instance of the RuntimeBinderException class that has a specified error message and a reference to the inner exception that is the cause of this exception.

Properties

Gets a collection of key/value pairs that provide additional user-defined information about the exception.

Gets or sets a link to the help file associated with this exception.

Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.

Gets the Exception instance that caused the current exception.

Gets a message that describes the current exception.

Gets or sets the name of the application or the object that causes the error.

Gets a string representation of the immediate frames on the call stack.

Gets the method that throws the current exception.

Methods

Determines whether the specified object is equal to the current object.

When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.

Serves as the default hash function.

When overridden in a derived class, sets the SerializationInfo with information about the exception.

Gets the runtime type of the current instance.

Creates a shallow copy of the current Object.

Creates and returns a string representation of the current exception.

Events

Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception.

Источник

Читайте также:  Html обрезать до символа
Оцените статью