IPropertySet接口

Members

?AllProperties MethodsDescription
Read-only propertyCountThe number of properties contained in the property set.包含屬性個數
MethodGetAllPropertiesThe name and value of all the properties in the property set.
MethodGetPropertiesThe values of the specified properties.
MethodGetPropertyThe value of the specified property.
MethodIsEqualTrue if the property set is the same as the input property set.
MethodRemovePropertyRemoves a property from the set.
MethodSetPropertiesThe values of the specified properties.
MethodSetPropertyThe value of the specified property.
public void GetAllProperties (ref object names,ref object values                      //The name and value of all the properties in the property set.
);


public void GetProperties (object names,ref object values                       //The values of the specified properties.
);
public object GetProperty (string Name                                //The value of the specified property.
);

主要實例是打開Oracle數據庫
//Personal Geodatabase e.g., database = "C:\\myData\\mypGDB.mdb"
<span style="font-size:14px;color:#3333ff;">public IWorkspace open_pGDB_Workspace(string database)</span>
<span style="font-size:14px;color:#3333ff;">{</span>
<span style="font-size:14px;color:#3333ff;"><span style="white-space:pre">	</span>ESRI.ArcGIS.esriSystem.IPropertySet propertySet = new ESRI.ArcGIS.esriSystem.PropertySetClass();</span>
<span style="font-size:14px;color:#3333ff;"><span style="white-space:pre">	</span>propertySet.SetProperty("DATABASE", database);</span>
<span style="font-size:14px;color:#3333ff;"><span style="white-space:pre">	</span>IWorkspaceFactory workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.AccessWorkspaceFactoryClass();</span>
<span style="font-size:14px;color:#3333ff;"><span style="white-space:pre">	</span>return workspaceFactory.Open(propertySet, 0);</span>
<span style="font-size:14px;color:#3333ff;">}</span>
// File Geodatabase e.g., database = "C:\\myData\\myfGDB.gdb"
<span style="color:#3333ff;">public IWorkspace open_fGDB_Workspace(string database)</span>
<span style="color:#3333ff;">{</span>
<span style="color:#3333ff;"><span style="white-space:pre">	</span>ESRI.ArcGIS.esriSystem.IPropertySet propertySet = new ESRI.ArcGIS.esriSystem.PropertySetClass();</span>
<span style="color:#3333ff;"><span style="white-space:pre">	</span>propertySet.SetProperty("DATABASE", database);</span>
<span style="color:#3333ff;"><span style="white-space:pre">	</span>IWorkspaceFactory workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.FileGDBWorkspaceFactoryClass();</span>
<span style="color:#3333ff;"><span style="white-space:pre">	</span>return workspaceFactory.Open(propertySet, 0);</span>
<span style="color:#3333ff;">}</span>

//SDE Geodatabase e.g., server = "Kona" // database = "sde" or ""?if Oracle // instance = "5151" // user = "vtest" // password = "go" // version = "SDE.DEFAULT" public IWorkspace open_ArcSDE_Workspace(string server, string instance, string user,string password, string database, string version) { ESRI.ArcGIS.esriSystem.IPropertySet propertySet = new ESRI.ArcGIS.esriSystem.PropertySetClass(); propertySet.SetProperty("SERVER", server); propertySet.SetProperty("INSTANCE", instance); propertySet.SetProperty("DATABASE", database); propertySet.SetProperty("USER", user); propertySet.SetProperty("PASSWORD", password); propertySet.SetProperty("VERSION", version); IWorkspaceFactory workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactoryClass(); return workspaceFactory.Open(propertySet, 0); }




轉載于:https://www.cnblogs.com/dengshiwei/p/4258582.html

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/247333.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/247333.shtml
英文地址,請注明出處:http://en.pswp.cn/news/247333.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Angular自學筆記(?)ContentChild和ContentChildren

ContentChild 用法類似ViewChild, 獲取投影中到組件或指令還有元素dom等 獲取投影中但組件 import {AfterViewInit, Component, ElementRef, OnInit, ViewChild} from @angular/core;@Component({selector: app-content-child-panel,templateUrl

Angular自學筆記(?)屬性型指令

基本概念 用于改變DOM元素的外觀或行為的指令 組件是一種特殊的指令 import {Component} from @angular/core; @Component({selector: app-root,template: `<!--<app-for></app-for>--><div app-for>dasfsada</div>`,

SNS編年史

準備起草。轉載于:https://www.cnblogs.com/cmleung/archive/2009/11/26/1611546.html

Angular自學筆記(?)結構型指令

內置指令的展開寫法 ngIf import {Component } from @angular/core; @Component({selector: app-root,template: `<button (click)="show = !show">toggle</button><p *ngIf="show as aa">一段文字 {{ aa }}</p><ng-template…

SQL on and 和 on where 的區別

on and 和 on where 的 區別 在使用 left join 時, on and 和 on where 會有區別&#xff1b;1. on的條件是在連接生成臨時表時使用的條件,以左表為基準 ,不管on中的條件真否,都會返回左表中的記錄  on 后面 and 都是對右表進行篩選 2.where是全部連接完后&#xff0c;對臨時…

:host :host-context ::ng-deep詳解

:host 與 ::ng-deep :host 表示選擇當前的組件。 ::ng-deep 可以忽略中間className的嵌套層級關系。直接找到你要修改的className。 在使用一些第三方的組件的時候&#xff0c;要修改組件的樣式。 這種情況下使用: :host ::ng-deep .className{新的樣式...... } :host {backg…

Java生鮮電商平臺-緩存架構實戰

Java生鮮電商平臺-緩存架構實戰 說明&#xff1a;在Java生鮮電商中&#xff0c;緩存起到了非常重要的作用&#xff0c;目前整個項目中才用的是redis做分布式緩存. 緩存集群 緩存集群存在的問題 1.熱key 緩存集群中的某個key瞬間被數萬甚至十萬的并發請求打爆。 2.大value 某個k…

Java生鮮電商平臺-深入理解微服務SpringCloud各個組件的關聯與架構

Java生鮮電商平臺-深入理解微服務SpringCloud各個組件的關聯與架構 概述 毫無疑問&#xff0c;Spring Cloud是目前微服務架構領域的翹楚&#xff0c;無數的書籍博客都在講解這個技術。不過大多數講解還停留在對Spring Cloud功能使用的層面&#xff0c;其底層的很多原理&#xf…

Angular自學筆記(?)DI提供者

類提供者 類提供者的創建和使用 假設有logger類: import {Injectable } from @angular/core;@Injectable() export class LoggerService {logs: string[] = [

Angular自學筆記(?)生命周期

從實例化組件,渲染組件模板時,各聲明周期就已開始 ngOnChanges 輸入屬性發生變化是觸發,但組件內部改變輸入屬性是不會觸發的 import {Component, Input, OnInit, OnChanges } from @angular/core;@Component({selector: app-life-cycle,templateUrl:

[轉載]httpClient.execute拋Connection to refused異常問題

在4.0之后android采用了嚴格模式&#xff1a;所以在你得activity創建的時候&#xff0c;在super.onCreate(savedInstanceState);后面加上這個 StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() .detectDiskReads() .detectDiskWrites(…

Angular自學筆記(?)依賴注入

什么是依賴注入 依賴注入(DI)是一種設計模式, 也有相應的框架,比如InversifyJS Angular 有自己的 DI 框架, DI 框架會在實例化該類時向其提供這個類所聲明的依賴項 帶修飾符的參數 在ts中,一個類的參數如果帶上修飾符,那個參數就變成了類的實例屬性 class Mobile {co…

MSN8.0經常出現連接錯誤,如何解決?

連接錯誤有很多種情形&#xff0c;請您先查看下連接錯誤代碼 然后可以嘗試以下解決辦法--------- 如何解決錯誤 81000301 或 81000306 您登錄 MSN Messenger 時&#xff0c;可能會收到以下錯誤消息&#xff1a; 我們無法讓您登錄到 MSN Messenger&#xff0c;可能是因為服務或 …

@ViewChild 的三種常用方法

//--1------ 在angular中進行dom操作 <div #dom>這是一個div</div> //放置一個錨點domimport { ElementRef, ViewChild } from angular/core;ViewChild(dom,{static:true}), eleRef:ElementRef; //static-True表示在運行更改檢測之前解析查詢結果&#xff0c;false…

SQL Server安裝文件掛起錯誤解決辦法

以前在安裝sql的時候&#xff0c;如此提示&#xff0c;我只要重新啟動即可&#xff0c;可是今天重新啟動了N次計算機&#xff0c;問題卻絲毫沒有解決&#xff0c;依然提示這樣的話。“以前的某個程序安裝已在安裝計算機上創建掛起的文件操作。運行安裝程序之前必須重新啟動計算…

angular 內容投影

app HTML <div class"wrapper"><h2>我是父組件</h2><div>這個div定義在父組件中</div><app-child><div class"header">這個div是父組件投影到子組件的1, {{title}}</div><div class"footer"…

移動端日歷插件

//datePicker日期控件 v1.0//var calendar new datePicker();//calendar.init({// trigger: #demo1, /*選擇器&#xff0c;觸發彈出插件*/// type: date,/*date 調出日期選擇 datetime 調出日期時間選擇 time 調出時間選擇 ym 調出年月選擇*/// minDate:1900-1-1,/*最小日期*/…

js 操作location URL對象進行操作

把location 創建URL對象 構造器 new URL() 創建并返回一個URL對象&#xff0c;該URL對象引用使用絕對URL字符串&#xff0c;相對URL字符串和基本URL字符串指定的URL。 屬性 hash 包含#的USVString&#xff0c;后跟URL的片段標識符。 host 一個USVString&#xff0c;其中…

aspx,ascx和ashx使用小結

做asp.net開發的對.aspx,.ascx和.ashx都不會陌生。關于它們&#xff0c;網上有很多文章介紹。“紙上得來終覺淺&#xff0c;絕知此事要躬行”&#xff0c;下面自己總結一下做個筆記。 1、.aspx Web窗體設計頁面。Web窗體頁由兩部分組成&#xff1a;視覺元素&#xff08;html、服…

vue3.x通過ref屬性獲取元素

在vue2.x中&#xff0c;可以通過給元素添加refxxx屬性&#xff0c;然后在代碼中通過this.$refs.xxx獲取到對應的元素 然而在vue3中時沒有$refs這個東西的&#xff0c;因此vue3中通過ref屬性獲取元素就不能按照vue2的方式來獲取vue3需要借助生命周期方法&#xff0c;原因很簡單…