Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdPwdIterator.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 OdPwdIterator : OdRxObject {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdPwdIterator(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdPwdIterator_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdPwdIterator 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 bool done() {
44 bool ret = TD_DbPINVOKE.OdPwdIterator_done(swigCPtr);
46 return ret;
47 }
48
49 public virtual void next() {
52 }
53
54 public virtual void get(ref string password) {
55IntPtr tmp_password = Marshal.StringToCoTaskMemUni(password);
56 IntPtr saved_password = tmp_password;
57 try {
58 TD_DbPINVOKE.OdPwdIterator_get(swigCPtr, ref tmp_password);
60 } finally {
61if (tmp_password != saved_password) password = Marshal.PtrToStringUni(tmp_password);
62 }
63 }
64
65 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
66 string ret = TD_DbPINVOKE.OdPwdIterator_getRealClassName(ptr /*SIMPLETYPE*/);
68 return ret;
69 }
70
71}
72
73}
OdPwdIterator(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdPwdIterator obj)
override void Dispose(bool disposing)
static string getRealClassName(IntPtr ptr)
static global::System.Exception Retrieve()
static void OdPwdIterator_get(HandleRef jarg1, ref IntPtr jarg2)
static void OdPwdIterator_next(HandleRef jarg1)
static void delete_OdPwdIterator(HandleRef jarg1)
static string OdPwdIterator_getRealClassName(IntPtr jarg1)
static bool OdPwdIterator_done(HandleRef jarg1)