System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation method

HttpHeaders::TryAddWithoutValidation(String, String) method

Tenta di aggiungere una nuova coppia nome-valore alla raccolta corrente.

bool System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation(String name, String value)
ParametroTipoDescrizione
nomeStringaIl nome dell’intestazione.
valoreStringaIl valore dell’intestazione.

Vedi anche

HttpHeaders::TryAddWithoutValidation(String, System::SharedPtr<Collections::Generic::IEnumerable<String>>) method

Aggiunge una raccolta di coppie nome-valore alla raccolta corrente.

bool System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation(String name, System::SharedPtr<Collections::Generic::IEnumerable<String>> values)
ParametroTipoDescrizione
nomeStringaIl nome dell’intestazione.
valoriSystem::SharedPtr<Collections::Generic::IEnumerable<String>>I valori dell’intestazione.

Vedi anche