차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
ko:bs2_setauthgroup [2017/06/28 11:34] 127.0.0.1 바깥 편집 |
ko:bs2_setauthgroup [2022/06/27 15:07] (현재) mark [함께 보기] |
||
---|---|---|---|
줄 25: | 줄 25: | ||
==== 함께 보기 ==== | ==== 함께 보기 ==== | ||
[[BS2_GetAuthGroup]]\\ [[BS2_GetAllAuthGroup]]\\ [[BS2_RemoveAuthGroup]]\\ [[BS2_RemoveAllAuthGroup]] | [[BS2_GetAuthGroup]]\\ [[BS2_GetAllAuthGroup]]\\ [[BS2_RemoveAuthGroup]]\\ [[BS2_RemoveAllAuthGroup]] | ||
+ | |||
+ | ==== 샘플코드 ==== | ||
+ | C# | ||
+ | <code cpp> | ||
+ | Console.WriteLine("Trying to set auth groups to device."); | ||
+ | BS2ErrorCode result = (BS2ErrorCode)API.BS2_SetAuthGroup(sdkContext, deviceID, authGroupListObj, (UInt32)authGroupList.Count); | ||
+ | if (result != BS2ErrorCode.BS_SDK_SUCCESS) | ||
+ | { | ||
+ | Console.WriteLine("Got error({0}).", result); | ||
+ | } | ||
+ | |||
+ | Marshal.FreeHGlobal(authGroupIDObj); | ||
+ | BS2_ReleaseObject(uidObj); | ||
+ | </code> |