HttpRequestHeaderCollection.TryAppendWithoutValidation(String, String) Method
Definition
Important
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.
Try to append the specified item to the HttpRequestHeaderCollection without validation.
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
Parameters
- name
-
String
Platform::String
winrt::hstring
The name of the item to append.
- value
-
String
Platform::String
winrt::hstring
The value of the item to append.
Returns
bool
true if the item was appended; otherwise false.
Remarks
The TryAppendWithoutValidation method is available when you need to work with an HTTP header on an HTTP request that doesn't have a strongly-typed class for the HTTP header. If there is a strongly-typed implementation of the HTTP header, then the methods and properties on the strongly-typed class should be used instead of the TryAppendWithoutValidation method.
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin