Home > APIs > AppServer API > Examples > Asset Management > Create a Bin
Create a Bin
Create a Bin
The sample code below shows how to create a bin. Bins contain assets (clips, playlists, etc.)
[C#]
// create a mediamgr object
IMediaMgr mediaMgr = iappServer.CreateMediaMgr(appName);
// create the bin V:/testbin
mediaMgr.CreateBin("V:", "testbin");
// cleanup
mediaMgr.Dispose();
[C++]
// create a mediamgr object
IMediaMgrPtr spMediaMgr;
hr = spAppServer->CreateMediaMgr(_bstr_t("YourApplicationName"),
&spMediaMgr);
// create the bin V:/testbin
spAppServer->CreateBin( _bstr_t("V:"), _bstr_t("testbin") );
