HttpResponseHeaderCollection.TryAppendWithoutValidation Método

Definición

Intente anexar el elemento especificado a HttpResponseHeaderCollection sin validación.

public:
 virtual bool TryAppendWithoutValidation(Platform::String ^ name, Platform::String ^ value) = TryAppendWithoutValidation;
bool TryAppendWithoutValidation(winrt::hstring const& name, winrt::hstring const& value);
public bool TryAppendWithoutValidation(string name, string value);
function tryAppendWithoutValidation(name, value)
Public Function TryAppendWithoutValidation (name As String, value As String) As Boolean

Parámetros

name
String

Platform::String

winrt::hstring

Nombre del elemento que se va a anexar.

value
String

Platform::String

winrt::hstring

Valor del elemento que se va a anexar.

Devoluciones

Boolean

bool

true si el elemento se anexó; de lo contrario , false.

Comentarios

El método TryAppendWithoutValidation está disponible cuando necesita trabajar con un encabezado HTTP en una respuesta HTTP que no tiene una clase fuertemente tipada para el encabezado HTTP. Si hay una implementación fuertemente tipada del encabezado HTTP, se deben usar los métodos y las propiedades de la clase fuertemente tipada en lugar del método TryAppendWithoutValidation.

Se aplica a