語言

WebAssemblyComponentsEndpointOptions 類別

定義

設定互動式 WebAssembly 元件的選項。

public sealed class WebAssemblyComponentsEndpointOptions
type WebAssemblyComponentsEndpointOptions = class
Public NotInheritable Class WebAssemblyComponentsEndpointOptions
繼承
WebAssemblyComponentsEndpointOptions

建構函式

名稱 Description
WebAssemblyComponentsEndpointOptions()

設定互動式 WebAssembly 元件的選項。

屬性

名稱 Description
PathPrefix

取得或設定 PathString,指出 Blazor WebAssembly 資產的前置詞。 此路徑必須對應至參考的 Blazor WebAssembly 應用程式專案。

ServeMultithreadingHeaders

取得或設定旗標,以判斷是否要啟用 WebAssembly 多線程。 如果為 true,伺服器會在主機頁面的回應中新增類似 Cross-Origin-Embedder-Policy: require-corp 和 Cross-Origin-Opener-Policy: same-origin 的標頭,因為這是在瀏覽器中啟用 SharedArrayBuffer 功能的必要專案。

請注意,啟用此功能可以限制您使用其他 JavaScript API 的能力。 如需詳細資訊,請參閱 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#security_requirements。

StaticAssetsManifestPath

取得或設定 String,決定對應至此應用程式的靜態資產指令清單路徑。

適用於