• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# OciHandle类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中OciHandle的典型用法代码示例。如果您正苦于以下问题:C# OciHandle类的具体用法?C# OciHandle怎么用?C# OciHandle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



OciHandle类属于命名空间,在下文中一共展示了OciHandle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: OCILobFileSetNameWrapper

 internal int OCILobFileSetNameWrapper(OciHandle envhp, OciHandle errhp, byte[] dirAlias, ushort dirAliasLength, byte[] fileName, ushort fileNameLength)
 {
     int num;
     bool success = false;
     RuntimeHelpers.PrepareConstrainedRegions();
     try
     {
         base.DangerousAddRef(ref success);
         RuntimeHelpers.PrepareConstrainedRegions();
         try
         {
         }
         finally
         {
             IntPtr handle = base.DangerousGetHandle();
             num = System.Data.Common.UnsafeNativeMethods.OCILobFileSetName(envhp, errhp, ref handle, dirAlias, dirAliasLength, fileName, fileNameLength);
             base.handle = handle;
         }
     }
     finally
     {
         if (success)
         {
             base.DangerousRelease();
         }
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:28,代码来源:OciFileDescriptor.cs


示例2: OCIAttrSet

 internal static int OCIAttrSet(OciHandle trgthndlp, OciHandle attributep, uint size, OCI.ATTR attrtype, OciHandle errhp)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCIAttrSet|ADV|OCI>              trgthndlp=0x%-07Ix trghndltyp=%-18ls attributep=0x%-07Ix size=%d attrtype=%-22ls errhp=0x%-07Ix\n", trgthndlp, trgthndlp.HandleType, attributep, size, attrtype, errhp);
     }
     return System.Data.Common.UnsafeNativeMethods.OCIAttrSet(trgthndlp, trgthndlp.HandleType, attributep, size, attrtype, errhp);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:8,代码来源:TracedNativeMethods.cs


示例3: OCIAttrGet

 internal static int OCIAttrGet(OciHandle trgthndlp, OciHandle attributep, out uint sizep, OCI.ATTR attrtype, OciHandle errhp)
 {
     int num = System.Data.Common.UnsafeNativeMethods.OCIAttrGet(trgthndlp, trgthndlp.HandleType, attributep, out sizep, attrtype, errhp);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCIAttrGet|ADV|OCI|RET>          trgthndlp=0x%-07Ix trghndltyp=%-18ls attrtype=%-22ls errhp=0x%-07Ix attributep=0x%-18Ix sizep=%2d rc=%d\n", trgthndlp, trgthndlp.HandleType, attrtype, errhp, OciHandle.HandleValueToTrace(attributep), sizep, num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:9,代码来源:TracedNativeMethods.cs


示例4: OCIServerVersion

 internal static int OCIServerVersion(OciHandle hndlp, OciHandle errhp, NativeBuffer bufp)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCIServerVersion|ADV|OCI>        hndlp=0x%-07Ix errhp=0x%-07Ix bufp=0x%-07Ix bufsz=%d hndltype=%d{OCI.HTYPE}\n", OciHandle.HandleValueToTrace(hndlp), OciHandle.HandleValueToTrace(errhp), NativeBuffer.HandleValueToTrace(bufp), bufp.Length, (int) hndlp.HandleType);
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCIServerVersion(hndlp, errhp, bufp, (uint) bufp.Length, (byte) hndlp.HandleType);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCIServerVersion|ADV|OCI|RET>    rc=%d\n%ls\n\n", num, hndlp.PtrToString(bufp));
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例5: OCISessionBegin

 internal static int OCISessionBegin(OciHandle svchp, OciHandle errhp, OciHandle usrhp, OCI.CRED credt, OCI.MODE mode)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCISessionBegin|ADV|OCI>         svchp=0x%-07Ix errhp=0x%-07Ix usrhp=0x%-07Ix credt=%ls mode=0x%x{OCI.MODE}\n", svchp, errhp, usrhp, credt, (int) mode);
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCISessionBegin(svchp, errhp, usrhp, credt, mode);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCISessionBegin|ADV|OCI|RET>     rc=%d\n", num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例6: OCIRowidToChar

 internal static int OCIRowidToChar(OciHandle rowidDesc, NativeBuffer outbfp, ref int bufferLength, OciHandle errhp)
 {
     ushort outbflp = (ushort) bufferLength;
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCIRowidToChar|ADV|OCI>          rowidDesc=0x%-07Ix outbfp=0x%-07Ix outbflp=%d, errhp=0x%-07Ix\n", OciHandle.HandleValueToTrace(rowidDesc), NativeBuffer.HandleValueToTrace(outbfp), outbfp.Length, OciHandle.HandleValueToTrace(errhp));
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCIRowidToChar(rowidDesc, outbfp, ref outbflp, errhp);
     bufferLength = outbflp;
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCIRowidToChar|ADV|OCI|RET>      outbfp='%ls' rc=%d\n", outbfp.PtrToStringAnsi(0, outbflp), num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:15,代码来源:TracedNativeMethods.cs


示例7: OCIServerAttach

 internal static int OCIServerAttach(OciHandle srvhp, OciHandle errhp, string dblink, int dblink_len, OCI.MODE mode)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCIServerAttach|ADV|OCI>         srvhp=0x%-07Ix errhp=0x%-07Ix dblink='%ls' dblink_len=%d mode=0x%x{OCI.MODE}\n", srvhp, errhp, dblink, dblink_len, (int) mode);
     }
     byte[] bytes = srvhp.GetBytes(dblink);
     int length = bytes.Length;
     int num = System.Data.Common.UnsafeNativeMethods.OCIServerAttach(srvhp, errhp, bytes, length, mode);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCIServerAttach|ADV|OCI|RET>     rc=%d\n", num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:15,代码来源:TracedNativeMethods.cs


示例8: OCILobFileSetName

 internal static int OCILobFileSetName(OciHandle envhp, OciHandle errhp, OciFileDescriptor filep, string dir_alias, string filename)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobFileSetName|ADV|OCI> envhp=0x%-07Ix errhp=0x%-07Ix filep=0x%-07Ix dir_alias='%ls', d_length=%d, filename='%ls', f_length=%d\n", OciHandle.HandleValueToTrace(envhp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(filep), dir_alias, dir_alias.Length, filename, filename.Length);
     }
     byte[] bytes = envhp.GetBytes(dir_alias);
     ushort length = (ushort) bytes.Length;
     byte[] fileName = envhp.GetBytes(filename);
     ushort fileNameLength = (ushort) fileName.Length;
     int num = filep.OCILobFileSetNameWrapper(envhp, errhp, bytes, length, fileName, fileNameLength);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobFileSetName|ADV|OCI|RET> rc=%d\n", num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:17,代码来源:TracedNativeMethods.cs


示例9: OCILobCreateTemporary

 internal static int OCILobCreateTemporary(OciHandle svchp, OciHandle errhp, OciHandle locp, [In, MarshalAs(UnmanagedType.U2)] ushort csid, [In, MarshalAs(UnmanagedType.U1)] OCI.CHARSETFORM csfrm, [In, MarshalAs(UnmanagedType.U1)] OCI.LOB_TYPE lobtype, int cache, [In, MarshalAs(UnmanagedType.U2)] OCI.DURATION duration)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobCreateTemporary|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix locp=0x%-07Ix csid=%d csfrm=%d{OCI.CHARSETFORM} lobtype=%d{OCI.LOB_TYPE} cache=%d duration=%d{OCI.DURATION}\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp), csid, (int) csfrm, (int) lobtype, cache, (int) duration);
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCILobCreateTemporary(svchp, errhp, locp, csid, csfrm, lobtype, cache, duration);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobCreateTemporary|ADV|OCI|RET> rc=%d\n", num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例10: OCITransRollback

 internal static int OCITransRollback(OciHandle srvhp, OciHandle errhp, OCI.MODE mode)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCITransRollback|ADV|OCI>         srvhp=0x%-07Ix errhp=0x%-07Ix mode=0x%x{OCI.MODE}\n", OciHandle.HandleValueToTrace(srvhp), OciHandle.HandleValueToTrace(errhp), (int) mode);
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCITransRollback(srvhp, errhp, mode);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCITransRollback|ADV|OCI|RET>      rc=%d\n", num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例11: OCIStmtFetch

 internal static int OCIStmtFetch(OciHandle stmtp, OciHandle errhp, int nrows, OCI.FETCH orientation, OCI.MODE mode)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCIStmtFetch|ADV|OCI>            stmtp=0x%-07Ix errhp=0x%-07Ix nrows=%d orientation=%d{OCI.FETCH}, mode=0x%x{OCI.MODE}\n", stmtp, errhp, nrows, (int) orientation, (int) mode);
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCIStmtFetch(stmtp, errhp, (uint) nrows, orientation, mode);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCIStmtFetch|ADV|OCI|RET>        rc=%d\n", num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例12: OCILobLoadFromFile

 internal static int OCILobLoadFromFile(OciHandle svchp, OciHandle errhp, OciHandle dst_locp, OciHandle src_locp, uint amount, uint dst_offset, uint src_offset)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobLoadFromFile|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix dst_locp=0x%-07Ix src_locp=0x%-07Ix amount=%u dst_offset=%u src_offset=%u\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(dst_locp), OciHandle.HandleValueToTrace(src_locp), amount, dst_offset, src_offset);
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCILobLoadFromFile(svchp, errhp, dst_locp, src_locp, amount, dst_offset, src_offset);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobLoadFromFile|ADV|OCI|RET> rc=%d\n", num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例13: OCILobOpen

 internal static int OCILobOpen(OciHandle svchp, OciHandle errhp, OciHandle locp, byte mode)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobOpen|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix locp=0x%-07Ix mode=%d\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp), (int) mode);
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCILobOpen(svchp, errhp, locp, mode);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobOpen|ADV|OCI|RET> rc=%d\n", num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例14: OCILobIsTemporary

 internal static int OCILobIsTemporary(OciHandle envhp, OciHandle errhp, OciHandle locp, out int flag)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobIsTemporary|ADV|OCI> envhp=0x%-07Ix errhp=0x%-07Ix locp=%Id\n", OciHandle.HandleValueToTrace(envhp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp));
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCILobIsTemporary(envhp, errhp, locp, out flag);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobIsTemporary|ADV|OCI|RET> flag=%d, rc=%d\n", flag, num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例15: OCILobGetLength

 internal static int OCILobGetLength(OciHandle svchp, OciHandle errhp, OciHandle locp, out uint lenp)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobGetLength|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix locp=%Id\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp));
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCILobGetLength(svchp, errhp, locp, out lenp);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobGetLength|ADV|OCI|RET> len=%u, rc=%d\n", lenp, num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例16: OCILobFreeTemporary

 internal static int OCILobFreeTemporary(OciHandle svchp, OciHandle errhp, OciHandle locp)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobFreeTemporary|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix locp=%Id\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp));
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCILobFreeTemporary(svchp, errhp, locp);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobFreeTemporary|ADV|OCI|RET> rc=%d\n", num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例17: OCIStmtExecute

 internal static int OCIStmtExecute(OciHandle svchp, OciHandle stmtp, OciHandle errhp, int iters, OCI.MODE mode)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCIStmtExecute|ADV|OCI>          svchp=0x%-07Ix stmtp=0x%-07Ix errhp=0x%-07Ix iters=%d rowoff=%d snap_in=0x%-07Ix snap_out=0x%-07Ix mode=0x%x{OCI.MODE}\n", svchp, stmtp, errhp, iters, 0, IntPtr.Zero, IntPtr.Zero, (int) mode);
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCIStmtExecute(svchp, stmtp, errhp, (uint) iters, 0, IntPtr.Zero, IntPtr.Zero, mode);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCIStmtExecute|ADV|OCI|RET>      rc=%d\n", num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例18: OCILobErase

 internal static int OCILobErase(OciHandle svchp, OciHandle errhp, OciHandle locp, ref uint amount, uint offset)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobErase|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix locp=0x%-07Ix amount=%d, offset=%d\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp), amount, offset);
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCILobErase(svchp, errhp, locp, ref amount, offset);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobErase|ADV|OCI|RET> amount=%u, rc=%d\n", amount, num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例19: OCILobAppend

 internal static int OCILobAppend(OciHandle svchp, OciHandle errhp, OciHandle dst_locp, OciHandle src_locp)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobAppend|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix dst_locp=0x%-07Ix src_locp=%Id\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(dst_locp), OciHandle.HandleValueToTrace(src_locp));
     }
     int num = System.Data.Common.UnsafeNativeMethods.OCILobAppend(svchp, errhp, dst_locp, src_locp);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<oc.OCILobAppend|ADV|OCI|RET> rc=%d\n", num);
     }
     return num;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TracedNativeMethods.cs


示例20: OciSimpleHandle

 internal OciSimpleHandle(OciHandle parent, OCI.HTYPE handleType, IntPtr value) : base(handleType)
 {
     base.handle = value;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:4,代码来源:OciSimpleHandle.cs



注:本文中的OciHandle类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# OctetString类代码示例发布时间:2022-05-24
下一篇:
C# Occurrence类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap