Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdPwdCache.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdPwdCache : OdRxObject {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdPwdCache(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdPwdCache_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdPwdCache obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
43 public virtual void add(String password) {
44 TD_DbPINVOKE.OdPwdCache_add(swigCPtr, password);
46 }
47
48 public virtual OdPwdIterator newIterator() {// OdPwdIteratorPtr
49 MemoryManager mMan = MemoryManager.GetMemoryManager();
50 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
51 IntPtr ptr = TD_DbPINVOKE.OdPwdCache_newIterator(swigCPtr);
52
53 OdPwdIterator ret = null;
54 if (null != mTrans)
55 {
56 mTrans.AddObject((OdPwdIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPwdIterator),ptr, true));
57 ret = (OdPwdIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPwdIterator),ptr, false);
58 }
59 else
60 {
61 ret = (OdPwdIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPwdIterator),ptr, true);
62 }
63
65 return ret;
66}
67
68 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
69 string ret = TD_DbPINVOKE.OdPwdCache_getRealClassName(ptr /*SIMPLETYPE*/);
71 return ret;
72 }
73
74}
75
76}
virtual OdPwdIterator newIterator()
Definition: OdPwdCache.cs:48
override void Dispose(bool disposing)
Definition: OdPwdCache.cs:30
static HandleRef getCPtr(OdPwdCache obj)
Definition: OdPwdCache.cs:26
static string getRealClassName(IntPtr ptr)
Definition: OdPwdCache.cs:68
virtual void add(String password)
Definition: OdPwdCache.cs:43
OdPwdCache(IntPtr cPtr, bool cMemoryOwn)
Definition: OdPwdCache.cs:21
static global::System.Exception Retrieve()
static string OdPwdCache_getRealClassName(IntPtr jarg1)
static void OdPwdCache_add(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void delete_OdPwdCache(HandleRef jarg1)
static IntPtr OdPwdCache_newIterator(HandleRef jarg1)