IFrameworkViewSource.CreateView Method
ビュー プロバイダー オブジェクトを戻すメソッド。
構文
パラメーター
この メソッド にはパラメーターがありません。
戻り値
ビュー プロバイダーを実装するオブジェクトです。
注釈
ref class MyAppViewSource : Windows::ApplicationModel::Core::IFrameworkViewSource { public: Windows::ApplicationModel::Core::IFrameworkView^ CreateView(); }; ... IFrameworkView^ MyAppViewSource::CreateView() { return ref new CoreWindowEvents(); } ... [Platform::MTAThread] int main(Platform::Array<Platform::String^>^) { auto myAppViewSource = ref new MyAppViewSource(); CoreApplication::Run(myAppViewSource); return 0; }
要件
|
サポートされている最小のクライアント | Windows 8 |
|---|---|
|
サポートされている最小のサーバー | Windows Server 2012 |
|
サポートされている最小の電話 | Windows Phone 8 |
|
名前空間 |
|
|
メタデータ |
|
参照