slreq.dngGetCurrentProject
说明
示例
获取当前工程
此示例显示如何获取有关 IBM DOORS Next 会话的当前工程的信息。
指定服务器地址、需求管理服务根和用户名。
rmipref(OslcServerAddress="https://localhost:9443"); rmipref(OslcServerRMRoot="rm"); rmipref(OslcServerUser="jdoe");
通过指定工程、配置上下文、是否测试从系统浏览器到 MATLAB® 的连接以及自定义身份验证回调函数 myPasswordHelperCallback
来建立连接。函数myPasswordHelperCallback
获取密码。有关更多信息,请参阅 setCustomLoginProvider
。
slreq.dngConfigure("My Project","My Project Initial Stream", ... true,"myPasswordHelperCallback")
Performing default system browser message test. If browser warns about a missing certificate for 127.0.0.1, please allow the connection or add exemption for 127.0.0.1. https://127.0.0.1:31515/matlab/oslc/inboundTest
返回有关当前工程的信息。
project = slreq.dngGetCurrentProject
project = name: 'My Project' uri: 'https://localhost:9443/rm/_tKwroIsyEeuFd_Hmf7aaKg' serviceUri: 'https://localhost:9443/rm/_tKwroIsyEeuFd_Hmf7aaKg/services.xml' context: 'My Project Initial Stream' queryBase: 'https://localhost:9443/rm/views?oslc.query=true&2F_tKwroIsyEeuFd_Hmf7aaKg
输出参量
project
— 当前工程信息
结构体
当前工程信息,以包含以下字段的结构体返回:
name
— 名称
字符向量
名称,以字符向量形式返回。
uri
— 统一资源标识符
字符向量
统一资源标识符,以字符向量形式返回。
serviceUri
— 服务统一资源标识符
字符向量
服务统一资源标识符,以字符向量形式返回。
context
— 配置上下文
字符向量
配置上下文,以字符向量形式返回。
queryBase
— 查询统一资源标识符
字符向量
查询统一资源标识符,以字符向量形式返回。
版本历史记录
在 R2023b 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)