편집

다음을 통해 공유


StreamUpgradeAcceptor.CanUpgrade(String) Method

Definition

Determines whether the upgrade requested is supported by this upgrade acceptor.

public:
 abstract bool CanUpgrade(System::String ^ contentType);
public abstract bool CanUpgrade (string contentType);
abstract member CanUpgrade : string -> bool
Public MustOverride Function CanUpgrade (contentType As String) As Boolean

Parameters

contentType
String

The type of content to be checked.

Returns

true if this kind of upgrade is supported; otherwise, false.

Remarks

The developer can inspect the requested content type and determine whether the resulting upgrade can be performed by this upgrade acceptor. This content type comes from the GetNextUpgrade method on the matching upgrade initiator.

Applies to