本文整理汇总了C#中ParameterValueOrFieldReference类的典型用法代码示例。如果您正苦于以下问题:C# ParameterValueOrFieldReference类的具体用法?C# ParameterValueOrFieldReference怎么用?C# ParameterValueOrFieldReference使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ParameterValueOrFieldReference类属于命名空间,在下文中一共展示了ParameterValueOrFieldReference类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: setPassword
private static ParameterValueOrFieldReference[] setPassword(ParameterValueOrFieldReference[] parameterValueOrFieldReference)
{
ParameterValue[] paramVals = new ParameterValue[parameterValueOrFieldReference.Length + 1];
for (int i = 0; i < parameterValueOrFieldReference.Length; i++)
{
paramVals[i] = (ParameterValue)parameterValueOrFieldReference[i];
}
paramVals[parameterValueOrFieldReference.Length] = new ParameterValue();
paramVals[parameterValueOrFieldReference.Length].Name = "PASSWORD";
paramVals[parameterValueOrFieldReference.Length].Value = "pass";
return paramVals;
}
开发者ID:johnkabler,项目名称:Small-Projects-and-Utils,代码行数:13,代码来源:DisableSubscriptionsBySubID.cs
示例2: CreateFromParameterValues
public static DeliverySettings CreateFromParameterValues(ParameterValueOrFieldReference[] objects)
{
if (objects == null) throw new ArgumentNullException();
if (objects.Length == 0) throw new ArgumentException();
if (!(objects[0] is ReportingService.ParameterValue)) throw new ArgumentException();
List<ReportingService.ParameterValue> values = objects.Cast<ReportingService.ParameterValue>().ToList();
// Logic to figure out file share or email
if (values.FirstOrDefault(x => x.Name == "TO") != null)
{
return
new EmailDeliverySettings(new ExtensionSettings
{
ParameterValues = objects,
Extension = EmailDeliverySettings.ExtensionString
});
}
return new FileShareDeliverySettings(new ExtensionSettings
{
ParameterValues = objects,
Extension = FileShareDeliverySettings.ExtensionString
});
}
开发者ID:shayaneumar,项目名称:gabbar,代码行数:24,代码来源:DeliverySettings.cs
示例3: SetDataDrivenSubscriptionPropertiesAsync
/// <remarks/>
public void SetDataDrivenSubscriptionPropertiesAsync(string DataDrivenSubscriptionID, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, string Description, string EventType, string MatchData, ParameterValueOrFieldReference[] Parameters, object userState) {
if ((this.SetDataDrivenSubscriptionPropertiesOperationCompleted == null)) {
this.SetDataDrivenSubscriptionPropertiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDataDrivenSubscriptionPropertiesOperationCompleted);
}
this.InvokeAsync("SetDataDrivenSubscriptionProperties", new object[] {
DataDrivenSubscriptionID,
ExtensionSettings,
DataRetrievalPlan,
Description,
EventType,
MatchData,
Parameters}, this.SetDataDrivenSubscriptionPropertiesOperationCompleted, userState);
}
开发者ID:hanksjosh,项目名称:ReportTransfer,代码行数:14,代码来源:Reference.cs
示例4: SetDataDrivenSubscriptionProperties
public void SetDataDrivenSubscriptionProperties(string DataDrivenSubscriptionID, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, string Description, string EventType, string MatchData, ParameterValueOrFieldReference[] Parameters) {
this.Invoke("SetDataDrivenSubscriptionProperties", new object[] {
DataDrivenSubscriptionID,
ExtensionSettings,
DataRetrievalPlan,
Description,
EventType,
MatchData,
Parameters});
}
开发者ID:hanksjosh,项目名称:ReportTransfer,代码行数:10,代码来源:Reference.cs
示例5: CreateDataDrivenSubscriptionAsync
/// <remarks/>
public void CreateDataDrivenSubscriptionAsync(string Report, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, string Description, string EventType, string MatchData, ParameterValueOrFieldReference[] Parameters) {
this.CreateDataDrivenSubscriptionAsync(Report, ExtensionSettings, DataRetrievalPlan, Description, EventType, MatchData, Parameters, null);
}
开发者ID:hanksjosh,项目名称:ReportTransfer,代码行数:4,代码来源:Reference.cs
示例6: CreateDataDrivenSubscription
public string CreateDataDrivenSubscription(string Report, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, string Description, string EventType, string MatchData, ParameterValueOrFieldReference[] Parameters) {
object[] results = this.Invoke("CreateDataDrivenSubscription", new object[] {
Report,
ExtensionSettings,
DataRetrievalPlan,
Description,
EventType,
MatchData,
Parameters});
return ((string)(results[0]));
}
开发者ID:hanksjosh,项目名称:ReportTransfer,代码行数:11,代码来源:Reference.cs
示例7: syncTreeNodes
private void syncTreeNodes(string destPath, TreeNodeCollection nodes)
{
foreach (TreeNode node in nodes)
{
if ((bool)node.Tag)
{
if (node.Nodes.Count > 0)
{
var childPath = destPath;
if (node.Checked)
{
if (destPath.Equals(ROOT_FOLDER))
childPath = ROOT_FOLDER + node.Text;
else
childPath = destPath + PATH_SEPERATOR + node.Text;
}
syncTreeNodes(childPath, node.Nodes);
}
else
{
if (!existingPaths.Contains(destPath))
{
EnsureDestDir(destPath);
existingPaths.Add(destPath);
}
var itemPath = ROOT_FOLDER + node.FullPath.Replace("\\", PATH_SEPERATOR);
var itemType = sourceRS.GetItemType(itemPath);
if (itemType == ItemTypeEnum.Resource)
{
//Download the resource
string resourceType;
var contents = sourceRS.GetResourceContents(itemPath, out resourceType);
uploadResource(destPath, node.Text, resourceType, contents);
processedNodeCount++;
continue;
}
var reportDef = sourceRS.GetReportDefinition(itemPath);
uploadReport(destPath, node.Text, reportDef);
//Sync subscriptions
ExtensionSettings extSettings;
string desc;
ActiveState active;
string status;
string eventType;
string matchData;
ParameterValue[] values = null;
Subscription[] subscriptions = null;
ParameterValueOrFieldReference[] extensionParams = null;
var destReportPath = destPath;
if (destReportPath.EndsWith("/"))
destReportPath += node.Text;
else
destReportPath += "/" + node.Text;
subscriptions = sourceRS.ListSubscriptions(itemPath, txtSourceUser.Text);
foreach (var subscription in subscriptions)
{
sourceRS.GetSubscriptionProperties(subscription.SubscriptionID, out extSettings, out desc, out active, out status, out eventType, out matchData, out values);
if (extSettings.Extension == "Report Server FileShare")
{
ParameterValue para = new ParameterValue();
para.Name = "PASSWORD";
para.Value = txtDestPassword.Text;
ParameterValueOrFieldReference[] exParams = new ParameterValueOrFieldReference[extSettings.ParameterValues.Length + 1];
Array.Copy(extSettings.ParameterValues, exParams, extSettings.ParameterValues.Length);
exParams[extSettings.ParameterValues.Length] = para;
extSettings.ParameterValues = exParams;
}
destRS.CreateSubscription(destReportPath, extSettings, desc, eventType, matchData, values);
}
processedNodeCount++;
bwSync.ReportProgress(processedNodeCount * 100 / selectedNodeCount);
}
}
}
}
开发者ID:mjdev01,项目名称:reportsync,代码行数:79,代码来源:ReportSync.cs
示例8: ValidateExtensionSettingsAsync
/// <remarks/>
public void ValidateExtensionSettingsAsync(string Extension, ParameterValueOrFieldReference[] ParameterValues) {
this.ValidateExtensionSettingsAsync(Extension, ParameterValues, null);
}
开发者ID:hanksjosh,项目名称:ReportTransfer,代码行数:4,代码来源:Reference.cs
示例9: SyncTreeNodes
private void SyncTreeNodes(string destPath, IEnumerable nodes)
{
foreach (var node in nodes.Cast<TreeNode>().Where(node => (bool) node.Tag))
{
if (node.Nodes.Count > 0)
{
var childPath = destPath;
if (node.Checked)
{
if (destPath.Equals(RootFolder))
childPath = RootFolder + node.Text;
else
childPath = destPath + PathSeperator + node.Text;
}
SyncTreeNodes(childPath, node.Nodes);
}
else
{
if (!_existingPaths.Contains(destPath))
{
EnsureDestDir(destPath);
_existingPaths.Add(destPath);
}
var itemPath = RootFolder + node.FullPath.Replace("\\", PathSeperator);
var itemType = _sourceServicesMgmt.ReportingService.GetItemType(itemPath);
if (itemType == ItemTypeEnum.Resource)
{
//Download the resource
string resourceType;
var contents = _sourceServicesMgmt.ReportingService.GetResourceContents(itemPath, out resourceType);
UploadResource(destPath, node.Text, resourceType, contents);
_processedNodeCount++;
continue;
}
var reportDef = _sourceServicesMgmt.ReportingService.GetReportDefinition(itemPath);
UploadReport(destPath, node.Text, reportDef);
//Sync subscriptions
var destReportPath = destPath;
if (destReportPath.EndsWith("/"))
destReportPath += node.Text;
else
destReportPath += "/" + node.Text;
var subscriptions = _sourceServicesMgmt.ReportingService.ListSubscriptions(itemPath, tbSourceUser.Text);
foreach (var subscription in subscriptions)
{
ExtensionSettings extSettings;
string desc;
ActiveState active;
string status;
string eventType;
string matchData;
ParameterValue[] values;
_sourceServicesMgmt.ReportingService.GetSubscriptionProperties(subscription.SubscriptionID, out extSettings, out desc, out active, out status, out eventType, out matchData, out values);
if (extSettings.Extension == "Report Server FileShare")
{
var para = new ParameterValue {Name = "PASSWORD", Value = tbDestPassword.Text};
var exParams = new ParameterValueOrFieldReference[extSettings.ParameterValues.Length + 1];
Array.Copy(extSettings.ParameterValues, exParams, extSettings.ParameterValues.Length);
exParams[extSettings.ParameterValues.Length] = para;
extSettings.ParameterValues = exParams;
}
_destServicesMgmt.ReportingService.CreateSubscription(destReportPath, extSettings, desc, eventType, matchData, values);
}
_processedNodeCount++;
bwSync.ReportProgress(_processedNodeCount * 100 / _selectedNodeCount);
}
}
}
开发者ID:CamiloBernal,项目名称:reportsync,代码行数:72,代码来源:ReportSync.cs
示例10: LoadSubscriptions
//.........这里部分代码省略.........
TimeoutSpecified = (bool)reportSubscription.queryDefinition.Element("TimeoutSpecified")
};
// Get Schedule Raw XML
subSettings[subscriptionIndex].ScheduleXml = reportSubscription.scheduleXml.ToString();
// Get Fields
var numberOfFields = reportSubscription.fields.Count();
var fieldsList = new Field[numberOfFields];
var fieldIndex = 0;
foreach (var field in reportSubscription.fields)
{
fieldsList[fieldIndex] = new Field
{
Name = (string)field.Element("Name"),
Alias = (string)field.Element("Alias")
};
fieldIndex++;
}
// Dataset Definition
subSettings[subscriptionIndex].DataSetDefinition = new DataSetDefinition
{
AccentSensitivitySpecified = false,
CaseSensitivitySpecified = false,
KanatypeSensitivitySpecified = false,
WidthSensitivitySpecified = false,
Fields = fieldsList
};
// Get Extension Paramters
int numberOfParameterValues = reportSubscription.extentionParameters.Count();
var extensionParams = new ParameterValueOrFieldReference[numberOfParameterValues];
var extParamIndex = 0;
foreach (var extParam in reportSubscription.extentionParameters)
{
switch ((string)extParam.Attribute("Type"))
{
case "ParameterValue":
var pv = new ParameterValue
{
Name = (string)extParam.Element("Name"),
Value = (string)extParam.Element("Value")
};
extensionParams[extParamIndex] = pv;
break;
case "ParameterFieldReference":
var pfr = new ParameterFieldReference
{
ParameterName = (string)extParam.Element("ParameterName"),
FieldAlias = (string)extParam.Element("FieldAlias")
};
extensionParams[extParamIndex] = pfr;
break;
}
extParamIndex++;
}
subSettings[subscriptionIndex].ExtensionParameters = extensionParams;
// Get (Input) Parameters
int numberOfNormalParameterValues = reportSubscription.parameters.Count();
开发者ID:stuartdotnet,项目名称:SSRSSubscriptionManager,代码行数:67,代码来源:SubscriptionManager.cs
示例11: ValidateExtensionSettingsAsync
/// <remarks/>
public void ValidateExtensionSettingsAsync(string Extension, ParameterValueOrFieldReference[] ParameterValues,
object userState)
{
if ((_validateExtensionSettingsOperationCompleted == null))
{
_validateExtensionSettingsOperationCompleted =
new SendOrPostCallback(OnValidateExtensionSettingsOperationCompleted);
}
InvokeAsync("ValidateExtensionSettings", new object[]
{
Extension,
ParameterValues
}, _validateExtensionSettingsOperationCompleted, userState);
}
开发者ID:GorelH,项目名称:dropkick,代码行数:15,代码来源:ReportingService.cs
示例12: BeginValidateExtensionSettings
/// <remarks/>
public IAsyncResult BeginValidateExtensionSettings(string Extension,
ParameterValueOrFieldReference[] ParameterValues,
AsyncCallback callback, object asyncState)
{
return BeginInvoke("ValidateExtensionSettings", new object[]
{
Extension,
ParameterValues
}, callback, asyncState);
}
开发者ID:GorelH,项目名称:dropkick,代码行数:11,代码来源:ReportingService.cs
示例13: CreateDataDrivenSubscriptionAsync
/// <remarks/>
public void CreateDataDrivenSubscriptionAsync(string report, ExtensionSettings ExtensionSettings,
DataRetrievalPlan DataRetrievalPlan, string Description,
string EventType, string MatchData,
ParameterValueOrFieldReference[] Parameters, object userState)
{
if ((_createDataDrivenSubscriptionOperationCompleted == null))
{
_createDataDrivenSubscriptionOperationCompleted =
new SendOrPostCallback(OnCreateDataDrivenSubscriptionOperationCompleted);
}
InvokeAsync("CreateDataDrivenSubscription", new object[]
{
report,
ExtensionSettings,
DataRetrievalPlan,
Description,
EventType,
MatchData,
Parameters
}, _createDataDrivenSubscriptionOperationCompleted, userState);
}
开发者ID:GorelH,项目名称:dropkick,代码行数:22,代码来源:ReportingService.cs
示例14: BeginCreateDataDrivenSubscription
/// <remarks/>
public IAsyncResult BeginCreateDataDrivenSubscription(string report, ExtensionSettings ExtensionSettings,
DataRetrievalPlan DataRetrievalPlan, string Description,
string EventType, string MatchData,
ParameterValueOrFieldReference[] Parameters,
AsyncCallback callback, object asyncState)
{
return BeginInvoke("CreateDataDrivenSubscription", new object[]
{
report,
ExtensionSettings,
DataRetrievalPlan,
Description,
EventType,
MatchData,
Parameters
}, callback, asyncState);
}
开发者ID:GorelH,项目名称:dropkick,代码行数:18,代码来源:ReportingService.cs
示例15: GetDataDrivenSubscriptionProperties
public string GetDataDrivenSubscriptionProperties(string DataDrivenSubscriptionID, out ExtensionSettings ExtensionSettings, out DataRetrievalPlan DataRetrievalPlan, out string Description, out ActiveState Active, out string Status, out string EventType, out string MatchData, out ParameterValueOrFieldReference[] Parameters) {
object[] results = this.Invoke("GetDataDrivenSubscriptionProperties", new object[] {
DataDrivenSubscriptionID});
ExtensionSettings = ((ExtensionSettings)(results[1]));
DataRetrievalPlan = ((DataRetrievalPlan)(results[2]));
Description = ((string)(results[3]));
Active = ((ActiveState)(results[4]));
Status = ((string)(results[5]));
EventType = ((string)(results[6]));
MatchData = ((string)(results[7]));
Parameters = ((ParameterValueOrFieldReference[])(results[8]));
return ((string)(results[0]));
}
开发者ID:hanksjosh,项目名称:ReportTransfer,代码行数:13,代码来源:Reference.cs
示例16: ValidateExtensionSettings
public ExtensionParameter[] ValidateExtensionSettings(string Extension, ParameterValueOrFieldReference[] ParameterValues) {
object[] results = this.Invoke("ValidateExtensionSettings", new object[] {
Extension,
ParameterValues});
return ((ExtensionParameter[])(results[0]));
}
开发者ID:hanksjosh,项目名称:ReportTransfer,代码行数:6,代码来源:Reference.cs
示例17: BeginSetDataDrivenSubscriptionProperties
/// <remarks/>
public System.IAsyncResult BeginSetDataDrivenSubscriptionProperties(string DataDrivenSubscriptionID, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, string Description, string EventType, string MatchData, ParameterValueOrFieldReference[] Parameters, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("SetDataDrivenSubscriptionProperties", new object[] {
DataDrivenSubscriptionID,
ExtensionSettings,
DataRetrievalPlan,
Description,
EventType,
MatchData,
Parameters}, callback, asyncState);
}
开发者ID:darrenschwarz,项目名称:sqltutorials,代码行数:12,代码来源:ReportingService2010.cs
示例18: BeginValidateExtensionSettings
/// <remarks/>
public System.IAsyncResult BeginValidateExtensionSettings(string Extension, ParameterValueOrFieldReference[] ParameterValues, string SiteUrl, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("ValidateExtensionSettings", new object[] {
Extension,
ParameterValues,
SiteUrl}, callback, asyncState);
}
开发者ID:darrenschwarz,项目名称:sqltutorials,代码行数:8,代码来源:ReportingService2010.cs
注:本文中的ParameterValueOrFieldReference类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论