HttpResponseHeaderCollection.TryAppendWithoutValidation Método

Definição

Tente acrescentar o item especificado ao HttpResponseHeaderCollection sem validação.

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

O nome do item a ser acrescentado.

value
String

Platform::String

winrt::hstring

O valor do item a ser acrescentado.

Retornos

Boolean

bool

true se o item foi acrescentado; caso contrário , false.

Comentários

O método TryAppendWithoutValidation está disponível quando você precisa trabalhar com um cabeçalho HTTP em uma resposta HTTP que não tem uma classe fortemente tipada para o cabeçalho HTTP. Se houver uma implementação fortemente tipada do cabeçalho HTTP, os métodos e as propriedades na classe fortemente tipada deverão ser usados em vez do método TryAppendWithoutValidation.

Aplica-se a