internal IMessageClient CreateView(int nodeId, int componentId, int viewDescriptionId, int viewInstanceId)
{
if (!this._initialized)
{
throw new Exception(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.NodeSyncManagerNotInitialized));
}
ScopeNode node = this.GetNode(nodeId);
if (node == null)
{
TraceSources.ExecutiveSource.TraceEvent(TraceEventType.Information, 12, "Node id:{0} not found. Cannot create view.", new object[] { nodeId });
return null;
}
return node.ViewDescriptions.CreateView(viewDescriptionId, node, componentId, viewInstanceId);
}