CorsPolicy.IsOriginAllowed 属性

定义

获取或设置一个函数,该函数评估是否允许源。

public:
 property Func<System::String ^, bool> ^ IsOriginAllowed { Func<System::String ^, bool> ^ get(); void set(Func<System::String ^, bool> ^ value); };
public Func<string,bool> IsOriginAllowed { get; set; }
member this.IsOriginAllowed : Func<string, bool> with get, set
Public Property IsOriginAllowed As Func(Of String, Boolean)

属性值

适用于